View Single Post
  #3  
Old March 6th, 2009, 12:25 PM posted to microsoft.public.excel.charting
David Biddulph
external usenet poster
 
Posts: 8,714
Default Handling blank data points

You probably want =IF(ISERROR(B2),"",B2) [or more specifically
=IF(ISNA(B2),"",B2) ] rather than =IF(ISERROR(B2),0,B2), as the zeroes could
screw up your averages.
--
David Biddulph

"OssieMac" wrote in message
...
Hi Jo,

I don't know if this is the best way but what I have done under similar
circumstances is use the #N/A for the chart series data column and then I
use
a helper column. In the helper column I insert the following formula
(Assuming that column B is the chart series data and the following formula
is
in any other column.
=IF(ISERROR(B2),0,B2)

That way I have a column that includes the zeros for the math functions.

You can still place the sum and average formulas at the bottom (or
wherever)
of column B but they actually sum and average the data in the helper
column.

Hide the helper column if desired. You can even place the helper column on
another worksheet and hide the worksheet.


--
Regards,

OssieMac


"jo2109" wrote:

I have a chart which is has "" in a formula to clear contents when not
applicable to show error. This results in the chart treating the cell as
0
and therefore ugly result in data point.

All other post responses to this type of question suggest using NA() and
conditional formation to hide the error.. Unfortunately when this is used
this screws up my SUM() and AVG() formulas..

Any other suggestions?

Thanks
Jo