I am using this formula
=OFFSET((General!$CY$5),COUNT(General!$CY$5:$CY$65536)-1,0,-MIN(Chartlength,COUNT(General!$CY:$CY)))
chartlength is 12, column CY has formula and sometimes it may give blank cells. The values in CY column are plotted on Y axis.
When column CY has any value, this dynamic function selects last 12 data point. But when any of the last 12 cells in CY column is blank (nul value due to calculations corresponding to other cells), the above function selects 12 cells but they are off by one cell.
I tried
=OFFSET((General!$CY$5),COUNTA(General!$CY$5:$CY$65536)-1,0,-MIN(Chartlength,COUNT(General!$CY:$CY))), but it select 12 datapoint from bottom of the column, and not the last 12.
For X axis, values are in column B. for it I am using =OFFSET(General!$B$5,COUNT(General!$B$5:$B$65536)-1,0,-MIN(Chartlength,COUNT(General!$B:$B)),1), and it work perfect because I am entering the data as I get. But data in CY column is calculated from values in other column.
What other function I should use in this case?
Bookmarks