Dynamic Charts and Blanks

B

BoRed79

Dear All.

I have produced a chart dynamically, using the technique outlined on the
Peliter website.

In general this works fine, in terms of when the list of data grows.
However, when my data list shrinks it causes a problem.

The data is the result of an Offset function, which leaves a blank cell
where there is no data. However, Excel charts a zero value - which I dont
want to have (I would rather it treat the cells as though they were blank).

Does anyone know how to do this???

Thanks.
 
B

BoRed79

Thanks.

How do I change my formula to get an error??

My current formula is:

=OFFSET($BL$1,MATCH(ROW()-1,$BL$2:$BL$17,0),-2)
 
J

Jon Peltier

I'm guessing that it might be like this, though I'm not sure I understand
why it doesn't already raise an error:

=if(isna(MATCH(ROW()-1,$BL$2:$BL$17,0)),NA(),OFFSET($BL$1,MATCH(ROW()-1,$BL$2:$BL$17,0),-2))

- Jon
 
Top