Excel - Show zero value but hide NA

Asked By KateB on 27-May-10 04:39 PM
I have a report that calculates the percentage compliance on various
questions and these are then charted in a bar chart.  It could be that the
compliance is zero (i.e. not doing any of the required competencies), or it
may be that the section is not applicable.  Therefore, the calculation will
return either NA (not applicable) or 0%.  I want the data labels in the chart
to show 0% but not NA (which currently shows as 0%, but I also tried NA(),
but it either hides both or shows both.

Any suggestions please?

Kate


Luke M replied to KateB on 28-May-10 08:39 AM
What type of chart are you using?

--
Best Regards,

Luke M
KateB replied to Luke M on 02-Jun-10 09:22 AM
Sorry Luke, I had not had notification that anyone had replied!

Its just a simple bar chart.  At the moment it has a custom format for the
labels of 0%;;;  I did not know if there was something similar for #NA.

Kate
Jon Peltier replied to KateB on 02-Jun-10 10:25 PM
The NA() trick only is relevant to line or XY charts. In a bar chart use
0, since a zero-height bar is not visible. Your custom number format will
work just fine.

- Jon
-------
Jon Peltier
Peltier Technical Services, Inc.
http://peltiertech.com/