A chart source data challenge.....

andy-s

Board Regular
Joined
Mar 22, 2002
Messages
51
The data source expands with 4 values pr month, that’s 48 values pr year. My boss want a chart limited to the last max 12 values. It would be no problem if I he only wanted the last 12, BUT he also wants the opportunity to choose how many values should be displayed (but still limited to last max 12 values) each time!

The data source look like
Text (A1) – value (A2) – value (A3) – value (A3) - etc

Do you know how this could be done?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Thanks for your reply Mark.

The site you mentioned contains many good ideas, but none of them did solve my problem.

BUT, I did find a another site with excel tips where my problem was mentioned.

What I realy was looking for was a dynamic chart that plots only the lates x datavalues. You can read more about it at

http://www.erlandsendata.no/english/downloads/charts.htm


The basic is:
$A$1 = number of values shown

MonthCount=IF(COUNT(Sheet1!$A:$A)<12,COUNT Sheet1!$A:$A),$A$1)

DataSerie1=OFFSET(Sheet1!$B$1,COUNTA(Sheet1!$A:$A)-MonthCount,0,MonthCount,1)

=OFFSET(Sheet1!$A$1;COUNTA(Sheet1!$A:$A)-Sheet1!$A$1;0;Sheet1!$A$1;1)


Thx
 
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,114,002
Members
448,543
Latest member
MartinLarkin

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