Dynamic Rolling Chart

Joeclupis

Board Regular
Joined
Jun 18, 2016
Messages
63
Hello to all,

I have a conundrum. I have a work book with multiple sheets. I am trying to make a chart that is a continuous rolling chart of the last 365 days of sales. The sheet that has the data is called DAILY VALUES, the sheet where I would like the chart is called 100LL Monthly Sales Comparison.

I have the following names defined:

ChtData100LL =offset('DAILY VALUES'!$H$1, COUNT('DAILY VALUES'!$H$H, 0,-3661) to select the quantity sold on any given day.
ChtLabels100LL =offset(ChtData100LL,0,-7) to define my date column.

The DAILY VALUES sheet has an entry for every day since 2009. When I selected my data for the chart I had a plot for the year of 5/11/14 (Auto) to 5/13/15 (Auto).

How can I change the formula/data name to get a range that is one year back from the current date?

Thank you for your kind help.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
If I understand you correctly, then this might help;

=EDATE(TODAY(),-12)

That will give you today's date minus 12 months

Or you could use;

=TODAY()-365

But some years are 366...
 
Upvote 0
Chrisdontm,

I understand the syntax, but where in the ChtData100LL would i place it, and exactly how would the syntax be?

Also I just noticed a spelling error -- the -3661 should be -366.
 
Upvote 0
It is a little difficult visualizing your set up, but, you could use another tab to extract the data for the year dynamically using the EDATE formula.
Then have your chart look at this new tab for the data.


I don't know if you mean to, but the OFFSET formula you are using is incomplete.
Inside the OFFSET, The COUNT formula doesn't seem to have a closing parenthesis, for the ChtData100LL that is...

I hope I am making sense, it would be easier if I could see the workbook in action...
 
Upvote 0
Trying to describe the workbook and sheets would be very tedious. could you email me at jcarney@sspmn.org? I can shoot you the file for you to look at. Also -- the parenthesis are correct in the workbook, I have no idea why they didn't copy/paste correctly.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top