Extracting User-driven Monthly Data Into A Graph

Jan 14, 2013

I have used the search function but can't seem to find a suitable solution.

I'm trying to figure the best way to extract 12 continuous months worth of data from a table and plot on a graph, each month with a separate plot on the graph (i.e. not the summed total but rather, a line graph with 12 points). The data is based on two, user-generated inputs, that are produced from a dropdown box.

I can create the Data Validation rules, use a Match formula to produce the reference for an Index formula and i have created a bunch of Named Ranges to work with and can easily generate the FIRST value to plot.

E.g. INDEX(DATA,ROW,COLUMN). After the first value, I'm stuck on how to generate the rest.

I have attached my problem for reference : Excel Problem.xlsx‎

View 2 Replies


ADVERTISEMENT

Graph & Chart: Data Source Changes Monthly

Nov 19, 2006

I am trying to write a macro that will automatically change the source data for a graph. This is an existing graph that is on tab GraphYTD and the data for the graph comes from DataYTD. The number of rows of data will change monthly, but I would like to use the same graph template every month. Here is my

Sub SortYTD()
Dim myBottom As Long
myBottom = Sheets("DataYTD"). Range("B65536").End(xlUp).Row
ActiveChart.SetSourceData Source:=Sheets("DataYTD").Range("F2:I" & myBottom)
ActiveChart.Location Where:=xlLocationAsObject, Name:="GraphYTD"

End Sub

I am getting Runtime error 91 - object variable or with block variable not set.

View 3 Replies View Related

Userform Verification (avoid Multiples In A User-driven/created Database.)

Feb 15, 2010

I would like to add a piece of code into the user form that will check and verify if a part has already been added so as to avoid multiples in a user-driven/created database.

here is a repost of the current code i am using for the user form (I have posted it before in another thread .. Blane245 helped me out with a different question I had)

View 7 Replies View Related

Extracting Data And Populating A Graph?

Oct 23, 2013

I've been working on this project for my work and having a little trouble getting it to work. What I want to do is have E3:E32 populate the last 30 times the cycle (J3) was run on furnace(J1) (These are drop down lists). I originally had it run the last 30 dates, but since some cycles don't run every day the graph was missing dates. I want it to be able to just fill in proper HRC/HRB readings from the sheet "DATA" which can be found in column "U" on that sheet according to which furnace is selected along with the cycle.

View 2 Replies View Related

Extracting Data From Workbooks In Single Folder Using User Made Button

Jun 28, 2014

I have the following macro in my spreadsheet to extract specific data from closed workbooks in a folder. It works great but what I would like to do is make it so I can just open the spreadsheet and press a button I create that will extract the data from the folder that it lies in.

Currently I have this specific spreadsheet just sitting by itself and I manually work out the address of where my spreadsheets lie and add that address into the code and run the macro. I find it a little cumbersome and me not knowing a hell of a lot in VBA don't know what the command is to make it pull the data from the folder that it resides in. Once I do this then I can create a button and assign the macro to it. Can change the code to be able to extract the data from all of the workbooks in the folder that the macro enabled spreadsheet lies?

[Code] ....

View 14 Replies View Related

Data Driven Cells

Jun 27, 2008

I've got a sheet which is filled with data from an SQL query, the data looks similar to this

Make Model Derivative
AUDI A3 HATCHBACK 1.6 3dr
AUDI A3 HATCHBACK 1.6 5dr
AUDI A3 HATCHBACK 1.6 SE 3dr
AUDI A3 HATCHBACK 1.6 SE 5dr
AUDI A3 HATCHBACK 1.8 SE 3dr
AUDI A3 HATCHBACK 1.8 SE 5dr

etc

On a seperate sheet I want to select the make in cell 1, then cell 2 populates with all the models for that make, select a model then cell 3 gives a list of derivatives to choose from. I'm not sure what this is called, I would call it a drop down list.

View 9 Replies View Related

Choose Selective Data From A Range Driven From Dropdown List?

Aug 23, 2013

I have a spreadsheet listing various pieces of computer hardware, software and mobile accessories, etc with costs attached.

I have created a dropdown list of staff profiles eg a sales representative, finance assistant, IT administrator.

What I want to do is get Excel to pull the data through from the data sheet, to a printable summary output form (something you could also cut and paste from). For example, a sale rep would need to be set up with a laptop, laptop case, mobile phone, etc, so when you select Sales rep from droplist, I want that action to pull all the associated data through to the summary form. Similarly, a Finance assistant would require different kit , perhaps a desktop PC , monitor , etc.

Next to my data I have created columns with "Y" for yes in cells containing kit that match the staff role requirements, but I am not sure of the best way to pull this together.

View 3 Replies View Related

Pulling Data Into Two Columns Labeled “Monthly” & “Non-Monthly”

Aug 3, 2009

I’m currently pulling data into two columns labeled “Monthly” & “Non-Monthly” respectively. They indicate work orders with a frequency of “Monthly” or “Non-Monthly”

The Monthly data is obtained using the following formula:....

View 9 Replies View Related

Extracting R Sqaured Value From Graph Using CODE

Mar 30, 2012

I must graph a series of data points in an X-Y scatter point chart multiple times, then fit every type of trendline to that a seperate graph. Using VBA, I must then extract the R Sqaured value from each trendline, and find the best trendline suitable for the job.

How to extract the R Sqaured value from the chart though.

View 5 Replies View Related

Extracting Data From File In Directory And Extracting Filename

Mar 20, 2014

I have a directory folder with an active workbook and another workbook id like to copy data from. The Following macro opens up a file in the same directory, copies some data and pastes it in the active workbook. However with this code I have to specify the filename, 'Data.xlsm' in the example code. I would like it to copy data from the only other workbook in the current directory WITHOUT having to specify the name in the code, so just opening it up no matter what filename it has.

In addition I would like to extract the filename from the workbook im copying data from and paste it into the activewoorkbook in sheet 1 Cell A1. I had a look at getopenfilename function but cant seem to make it work for my purpose.

View 4 Replies View Related

Producing Table Of Monthly Values Based On Monthly Growth Rate And Yearly Total

Mar 6, 2013

I have a table of yearly totals for the amount spent by x. I also have a growth rate for each month so for example in 2001 in jan the growth rate might have been 0.3% and feb 0.5% What I want to do is for each month based on the growth rate and the total produce a value for each month which sum to the total amount. It's also important to note that it restarts each year.

Link for excel file is here: [URL] ...........

View 1 Replies View Related

Hide Rows Where Cell = 0 (formula-driven)

Jun 24, 2009

I have formulas in cells B8:B365 that pull project names (in words) from a plugin using values specified in other cells (non-formula). If a project is inactive, the cell returns a 0.

I am looking for a macro that will hide the rows in this range where the B cells = 0. If there is no data at all, I want to leave the row as-is (unhidden). I also have 2 other specific sheets in the workbook that I'd like to include in the formula without having to repeat the macro 2 other times.

The one I am currently using just hides every row, regardless of if there is a title, a 0, or nothing. Here is the code (I don't know how to create those nifty little text boxes):

View 5 Replies View Related

Qualifying Code For Event Driven Macros

Jan 23, 2007

I am encountering an error(-2147417848) when running my existing code. I did a little research and found on MSKB Q319832 information that suggests that I might try qualifying my code (not that I know what that means : D) In the article, it suggests using something like the below:

Dim oXL As Excel.Application
Set oXL = New Excel.Application
oXL.Visible = True
.....
.....
oXL.Quit
Set oXL = Nothing

I tried this approach and it fails as soon as it hits the event portion of the macro:

If oXL.Target.Address = "$C$2" Then
....
End If

I need to understand how the oXL object is used against information in my existing workbook.

View 2 Replies View Related

Prevent The User From Saving The Data Input From The User Form If Any Of Those Three Fields Is Left Blank

Feb 9, 2010

I have a user form that has a combo box "City" two text boxes one called "Flight" and the other "Date". What I'm trying to do is to prevent the user from saving the data input from the user form if any of those three fields is left blank. The code that I have so far checks all of the required fields, if any are left blank a message notifys which field(s) is left blank and return the focus back to that field. But the rest of code also fires.

What I really need is either to stop the code if any fields are blank and return the focus back to the blank field, the user completes the field(s) and clicks the save again, or better yet, pause the code until all the required fields are completed and then complete the save. (There is actually another 200+ lines of code in this sub, but I deleted it to keep the post a little shorter.)

View 2 Replies View Related

Formula To Convert Monthly Data To Weekly Data

May 8, 2014

I have 12 observations per variable over 2013. At the end of each month I gathered the average value of X of said month. What I want to do is convert these observations to a list of weekly observations, where each week in January gets the value of the January observation

Example:

Month123456789101112
Value 2345678910111213

And get it like:

Week Value
1 2
2 2
3 2
4 2
5 2
6 3
7 3

and so on.

Since I've got a lot of variables I'd like to use some kind of formula.

View 11 Replies View Related

Add Data Monthly And Then Have To Manually Update The "source Data" To Reflect The Added Data On Chart

Apr 28, 2009

I have a column line chart to which I add data monthly and then have to manually update the "source data" to reflect the added data on chart. This is a rolling graph, which mean that I have to remove data for one month(from last year) and then include the new month's data. Is there any way on automating this process...like a macro or something, so once I add the data excel automatically removes one month of old data and make changes to include fresh data. Eg Currently chart is based on data from A2:F2 and I add new data to cell G2. I need something which automatically update the source data to cell B2:G2.

View 4 Replies View Related

Quarterly Data To Monthly

Jan 27, 2014

I am trying to convert quarterly data to monthly

The quarterly data columns go: Mar-14, Jun-14 etc
The monthly data columns goes Jan-14, Feb-14 etc

I am trying to use a vlookup and match formula but as you will see in the attached file it is only working for those months that are labelled in both data e.g. March 14, June 14

Is there a formula that will pick up for example that January and February numbers should be drawn from the March 14 quarter, April and May from June quarter etc?

View 2 Replies View Related

Counting Monthly Data

Jan 31, 2014

I have a table which has the following columns:

Date - Data1 - Data2 - OtherData1 - OtherData2

I came up with some formulas to count my data monthly. I have 12 tables with this kind of formula in it:

[Code] ....

Where B12 is the year and A213 is my month number. My first try on the "date filter" looked like that:

[Code] .........

And it wasn't working so I thought it was because the 31 wasn't a good idea for non-31-days-months but none of the formulas above are working.

(BTW, IDK why it's not working but I have data in my table for months 10, 11 and 12 and the only calculation tables that are calculating data are the ones for months 9 and 10. The results are the same in these two tables and are counting all my Table1[Data1] and [Data2] (the count is not monthly))

View 7 Replies View Related

Monthly Analysis On Data

Sep 29, 2007

I am trying to do some analysis on montly bank account data. To do this I need to take the bank statement information for the month and put it into a table that shows every day of the month (see attached example).

I am currently doing this manually but I'm sure there must be a smarter way of doing this.

View 3 Replies View Related

Converting Monthly Data Into Daily Data?

Jan 27, 2014

Basically i have month end data ranging from 31/01/2000-31/01/2009 with a value attached to each. I need to convert this data into a daily series with the month end value being the same throughout the whole month. I've been playing around with excel for a couple hours tonight

View 9 Replies View Related

Formula For Monthly Data Into Quarters?

May 25, 2014

I believe there is a way to summarize monthly data with the month in rows and the heading across columns. The goal is to have a formula summarize the data with Q1 through Q4 in rows and headings across columns and vice versa. Sample data attached.

Sample.qrt.data.jpg

View 2 Replies View Related

How To Add Monthly Sales Data Using Formula

Dec 29, 2013

How can I add data to the monthly sales section in the workbook? I can't seem to figure out the code.

mockup.xlsx

View 5 Replies View Related

Turning Monthly Data Into Daily?

Jul 26, 2014

Is it possible to turn monthly data into daily? Repeating the same data for four sets of five working days to turn a CPI monthly inflation index into daily data, to turn example 1 into example 2.

Example 1.

DATEVALUE
2008-01-01 212.174
2008-02-01 212.687
2008-03-01 213.448
2008-04-01 213.942
2008-05-01 215.208

Example 2:

2008-01-01 212.174
2008-01-02 212.174
2008-01-03 212.174
2008-01-04 212.174

View 3 Replies View Related

Count Data Monthly Automatically

Dec 3, 2012

I need a formula that i can put in cells that can count datas automatically each month. The data that i have is huge and it updates everyday. As an example i will explain it simply.

Lets say i have a list of product groups in column A. Column B is the date where the samples arrived, Column C is the approval, Column D is the sending date.

I probably need to post a picture of the table: [URL]...

sample workbook: Attachment 197668Attachment 197668

So as you can see, i need to a formula to count the percentage of "approved samples", "not approved samples" and so on (for month december)

The approved sample for month december should have these requirement: If the date of arrival is in December 2012, if the approval says "approved" and NOT EMPTY,if the date of sending is NOT EMPTY.. So from the table, the answer is 2.

The percentage should be the 2, divided by all samples (Telephone) arrived with approval, doesnt matter if the date of sending is empty or not. (which is 4)

I would want a formula that can do this automatically monthly, so i dont need to do the formula time and again.

View 14 Replies View Related

Monthly Average From Daily Data

Oct 28, 2011

I have data in the following format (columns A & B):

Code:
Day Value
1/1/2002 2.1
2/1/2002 4.8
3/1/2002 0.1
" "
" "
" "
31/12/2011 5.2

I'd like to be able to write a formula so that I can get the daily data averaged over each month, e.g so that I have something like:

Code:
Day Value
Jan 2002 3.3
Feb 2002 4.3
Mar 2002 3.1
" "
" "
" "
Dec 2011 4.2

I'd like the data in monthly averages so that I can graph them. I have read about array formulas and averageif statements, but I can't seem to combine them to make them work.

View 7 Replies View Related

Data Finding On Monthly Update

Sep 4, 2008

What I've got is 2 worksheets. One is updated every month with new data and therefore the style of the new worksheet is likely to change.

The other one is static and needs to take the data from the updated one. I can't just use a basic =sheet1!A1 because the data will get moved around.

I need to be able to tell it to: look in the new sheet, based off the column heading and row heading find the cell and copy it to the same place on the static sheet. e.g.

In G14, I need it to find on the second sheet "Apr 08" as the column heading and "Yell.com" as the row heading and put it in G14.

It would be easy to do it manually, but as the spreadsheet grows, it'll be harder and harder.

View 9 Replies View Related

Calculate Monthly Sales Based On Data Given?

Jun 9, 2014

How to calculate the monthly sales based on the data given ?

View 4 Replies View Related

Daily Data Conversion To Monthly Totals

Sep 9, 2013

I have a daily rainfall data and I want to convert it to monthly totals. I tried the pivotal table but the arrangement of the data seemed to be confusing (i.e the year, month and day are in different columns).

See the attached data: Raindata_excel_forum.xlsx‎

View 9 Replies View Related

Compiling Monthly And Annual Data On One Sheet

May 17, 2009

I have been trying to compile some monthly and annual data from our main sheet to a FY09 sheet (for the fiscal year 2009). The 2 tabs in the uploaded example are the Distribution tab which we use to track the status of every item and the FY09 tab where I need the totals to be calculated for each month as well as the entire year. I have tried several formulas I found while searching the forum but I can not seem to get any of them to work, (I am sure it is because I don't understand them very well).

Since any formulas used will need to be copied 200 or so times, I would really like a VB solution which should also reduce the physical size of the file. I also tried a pivot table but I do not think it will show everything I need.

Basically, I need all the items separated by month on the FY09 tab. Then column 'F' on the Distribution tab needs to be summed up for each item in column 'D' of the FY09 tab for the respective month and multiplied by the respective item price in column'C' with the total value going in column 'E'. Column 'D' and 'E' need to be summed up for each month and cumulative for the entire year. There needs to be an average items and value for each month as well as for the year.

View 8 Replies View Related

Given Weekly Data Coming Up With Monthly Amounts

Sep 5, 2009

I am to the end of my wits - or maybe it's impossible to do the following with formulas?

I have the data like this:
Column A: Date (which is basically the date for the beginning of weeks)
Column B: Month of the date in Column A
Column C: Year of the data in Column A
Column D: Weekly data.

A: DateB: MonthC: YearD: Weekly data
12/11/200612200619
12/18/200612200644
12/25/200612200650
1/1/20071200741
1/8/20071200737
1/15/20071200741
1/22/20071200741
1/29/20071200741
2/5/20072200732
2/12/20072200736
2/19/20072200740
2/26/20072200735

Maybe it's because it's Friday night, but I just can't invent how to do the following:

Create a new column E that would contain the monthly sum of ColumnD across all weeks of this month - but entered only against the first week of that month (that is currently in Column A)
I.e., in my example it should be:
113
empty
empty
201
empty
empty
empty
empty..................

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved