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  

Data labels for zero value only



 
 
Thread Tools Display Modes
  #1  
Old July 18th, 2007, 04:48 PM posted to microsoft.public.excel.charting
Tyler H
external usenet poster
 
Posts: 6
Default Data labels for zero value only

Is there a way for the data label values to appear on a chart only for
observations where the value is zero?

I have a clustered column chart where some values are zero. In such cases,
no column appears for these observations (i.e. a column of zero height). I'd
like to have a "0" appear right above the x-axis to indicate a zero value for
that particular observation. All other data labels should be blank
(including all the numbers would make the chart appearance too busy).

I realize I could simply add a text box with a zero. However, the chart is
frequently updated, and there may be some months when the value is not zero.
I'd prefer to have Excel automatically determine whether a data label should
appear.
  #2  
Old July 18th, 2007, 04:54 PM posted to microsoft.public.excel.charting
Andy Pope
external usenet poster
 
Posts: 2,088
Default Data labels for zero value only

Hi,

One way would be to use a custom number format for the data labels of
;;0

Cheers
Andy

--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"Tyler H" wrote in message
...
Is there a way for the data label values to appear on a chart only for
observations where the value is zero?

I have a clustered column chart where some values are zero. In such
cases,
no column appears for these observations (i.e. a column of zero height).
I'd
like to have a "0" appear right above the x-axis to indicate a zero value
for
that particular observation. All other data labels should be blank
(including all the numbers would make the chart appearance too busy).

I realize I could simply add a text box with a zero. However, the chart is
frequently updated, and there may be some months when the value is not
zero.
I'd prefer to have Excel automatically determine whether a data label
should
appear.


  #3  
Old July 18th, 2007, 05:12 PM posted to microsoft.public.excel.charting
Tyler H
external usenet poster
 
Posts: 6
Default Data labels for zero value only

Wow ... thank you very much.

Problem solved with a very simple solution.

What exactly does the semicolon ( in a number format indicate?



"Andy Pope" wrote:

Hi,

One way would be to use a custom number format for the data labels of
;;0

Cheers
Andy

--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"Tyler H" wrote in message
...
Is there a way for the data label values to appear on a chart only for
observations where the value is zero?

I have a clustered column chart where some values are zero. In such
cases,
no column appears for these observations (i.e. a column of zero height).
I'd
like to have a "0" appear right above the x-axis to indicate a zero value
for
that particular observation. All other data labels should be blank
(including all the numbers would make the chart appearance too busy).

I realize I could simply add a text box with a zero. However, the chart is
frequently updated, and there may be some months when the value is not
zero.
I'd prefer to have Excel automatically determine whether a data label
should
appear.



  #4  
Old July 18th, 2007, 07:14 PM posted to microsoft.public.excel.charting
Del Cotter
external usenet poster
 
Posts: 553
Default Data labels for zero value only

On Wed, 18 Jul 2007, in microsoft.public.excel.charting,
Tyler H said:

"Andy Pope" wrote:
One way would be to use a custom number format for the data labels of
;;0


Wow ... thank you very much.

Problem solved with a very simple solution.

What exactly does the semicolon ( in a number format indicate?


It's a divider between the usual three situations the format is for

[when positive];[when negative];[when zero]

You wanted it to be blank when positive, blank when negative, and a
plain integer when zero. Check the Excel help file for more useful
custom number formats.

--
Del Cotter
NB Personal replies to this post will send email to ,
which goes to a spam folder-- please send your email to del3 instead.
 




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


All times are GMT +1. The time now is 04:16 PM.


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