A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Charts and Charting
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Hiding #N/A Labels on Column Chart



 
 
Thread Tools Display Modes
  #1  
Old August 11th, 2004, 10:39 PM
szgd5h
external usenet poster
 
Posts: n/a
Default Hiding #N/A Labels on Column Chart

I used the NA() function suggested by Tushar for line charts to avoid
plotting blank cells as 0s. It worked great. When I try it for a
column chart, the #N/A data label appears when I select show data
labels. I have the following data:

Joe 8 10 80%
Bob 8.5 10 85%
John 9 10 90%
Joyce 9.5 10 95%
Cindy 10 10 100%
Paul 10 10 100%
Al 0 0 #N/A
Julie 0 0 #N/A

I calculate the % with the following formula:
=IF(C1=0,NA(),B1/C1)

When I plot the data in column 1 and 4 in a column chart and show the
data labels, the #N/A appears. How can I get rid of this without
having to modify the chart each time? (In other words, I can get rid
of it by manually clearing the cells with the #N/A in it each time, but
I'd prefer not to.)
Thanks.


---
Message posted from http://www.ExcelForum.com/

  #2  
Old August 12th, 2004, 12:16 AM
Tushar Mehta
external usenet poster
 
Posts: n/a
Default Hiding #N/A Labels on Column Chart

For a column chart, unless you change the default value where the x-
axis crosses the y-axis, there is no difference between plotting 0 and
N/A -- at least in terms of a visible column. So, the NA() that's
required for a line chart may be unnecessary for a column chart.

That said, if you just plot cols 1 and 4 you will get Al and Julie as
names along the x-axis with no column above their respective names. I
assume that is what you want.

Option 1:
If you haven't changed the default setting mentioned in para 1, you can
simplify your work a bit.

Plot columns 1 and 3. Change column 4's formula to be "" rather than
NA(). Then, use either XY Chartlabeler (www.appspro.com) or Chart
Tools (www.j-walk.com) to add column 4 as the data label for the
column.

Option 2: This alternative is insensitive to the condition identified
in para 1 above. Add column 5 (ie., column E). E1 will contain the
formula =IF(ISNA(D1),"",D1). Copy E1 as far down col. E as necessary.

Now, plot columns 1 and 4 and use Chartlabeler (or Chart Tools) to set
column E as the labels column.


--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article , szgd5h
says...
I used the NA() function suggested by Tushar for line charts to avoid
plotting blank cells as 0s. It worked great. When I try it for a
column chart, the #N/A data label appears when I select show data
labels. I have the following data:

Joe 8 10 80%
Bob 8.5 10 85%
John 9 10 90%
Joyce 9.5 10 95%
Cindy 10 10 100%
Paul 10 10 100%
Al 0 0 #N/A
Julie 0 0 #N/A

I calculate the % with the following formula:
=IF(C1=0,NA(),B1/C1)

When I plot the data in column 1 and 4 in a column chart and show the
data labels, the #N/A appears. How can I get rid of this without
having to modify the chart each time? (In other words, I can get rid
of it by manually clearing the cells with the #N/A in it each time, but
I'd prefer not to.)
Thanks.


---
Message posted from http://www.ExcelForum.com/


  #3  
Old August 12th, 2004, 12:18 AM
szgd5h
external usenet poster
 
Posts: n/a
Default Hiding #N/A Labels on Column Chart

I'm using Excel 2002. I found the exact problem I mentioned in my
posting listed on this microsoft website. It sounds like it can be
manually fixed by following their instructions.

http://support.microsoft.com/default...&Product=xlw2K

I'd still like a workaround fix if anyone has any suggestions.
Thanks.


---
Message posted from http://www.ExcelForum.com/

  #4  
Old August 13th, 2004, 12:25 AM
szgd5h
external usenet poster
 
Posts: n/a
Default Hiding #N/A Labels on Column Chart

Thanks Tushar! It opted to go the ChartLabeler route and use the isna
formula you suggested.

It seems to work so far.
Thanks again!


---
Message posted from http://www.ExcelForum.com/

  #5  
Old August 15th, 2004, 09:26 PM
Tushar Mehta
external usenet poster
 
Posts: n/a
Default

You are welcome. Glad to be of help.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article , szgd5h
says...
Thanks Tushar! It opted to go the ChartLabeler route and use the isna
formula you suggested.

It seems to work so far.
Thanks again!


---
Message posted from http://www.ExcelForum.com/


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Combined columnar chart(3 - 5 columns) and stacked column (1 column, 2 series) as one chart wmcentee Charts and Charting 1 April 8th, 2004 07:01 PM
Organize chart labels automatically mbobro Charts and Charting 1 April 8th, 2004 02:16 PM
'Closing' chart window *and* removing chart using VBA Marc R. Bertrand Charts and Charting 7 December 17th, 2003 04:30 PM
Is it possible to plot 3 surfaces in a Pivot Chart? (Repost) Alison Charts and Charting 5 October 21st, 2003 11:00 PM


All times are GMT +1. The time now is 11:44 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.