Dynamic chart with end date and count backward

kh40sth30ry

New Member
Joined
May 8, 2011
Messages
9
Hello,

I have a quick question regarding plotting the interactive chart. So i follow John Peltier instructure to create a rolling chart.
http://peltiertech.com/Excel/Charts/DynamicLast12.html

However, i have to do something more indepth, and i wasn't able to do it using his example. Basically i want to be able to rollback any number of month entered by me, but limit to the earliest point of the data. For example:
My data is from Jan 11 to Jun 11. I then can choose and month during the period and want to display the last 7 months, it will not give me error but just graph whatever data available instead.

Thank you for reading my post.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
In his formula you would need to change the min look up to a cell reference of your choice.

"But if the range is shorter, the OFFSET formula would refer to rows before row 1. The term <TT>MIN(chtLen,COUNTA(Sheet1!$A:$A)-1)</TT> takes the actual length of the range if it's less than <TT>chtLen</TT>:

=OFFSET(Sheet1!$A$1,COUNTA(Sheet1!$A:$A)-1,0,-MIN(chtLen,COUNTA(Sheet1!$A:$A)-1),1)"</PRE>

=OFFSET(Sheet1!$A$1,COUNTA(Sheet1!$A:$A)-1,0,[CHANGE ThIS WITH YOUR MONTHS VARIALBE CHOICE CELL REFERNCE]-1),1)</PRE></PRE>
 
Upvote 0

Forum statistics

Threads
1,224,530
Messages
6,179,373
Members
452,907
Latest member
Roland Deschain

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