![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 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? |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
It sounds like you're going to have to mess around with named ranges.
Have a look at the chart section of Stephen Bullen's site to see if anything there could be applied to what you want. (Your description doesn't make a whole lot of sense to me I'm afraid) http://www.bmsltd.co.uk/Excel/Default.htm |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Posts: 51
|
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/...ads/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 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|