How do I get an Excel chart to ingore zero values created by funct

B

BOBODD

I'm using SUM functions to calculate monthly sales totals. Currently most of
the results are zeros. How do I include the entire data range in my chart (so
I don't have to redo it every month) but make sure that the chart doesn't
include any zero values? I've tried hiding all zeros in my worksheet, but the
chart doesn't recognise these as blank cells. I'm using Excel 2003
 
J

Jon Peltier

If it's a line or XY chart, and the zeros are all at the end of the range,
change your formula so it returns #N/A instead of 0:

=IF(SUM(A1:A10)=0,NA(),SUM(A1:A10))

The #N/A errors are ugly in the sheet, but can be hidden using conditional
formatting. The chart doesn't show these values.

- Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top