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  

Suppress Zero On a Chart



 
 
Thread Tools Display Modes
  #1  
Old May 6th, 2004, 01:21 AM
Jerry W. Lewis
external usenet poster
 
Posts: n/a
Default Suppress Zero On a Chart

Use #N/A instead of "" for null values.

Jerry

Bob Barnes wrote:

I have Souree Data for a Chart with some Null Values.

However, they appear as Zero on the Chart. The Tools - Options - "View" tab
unchecking "Zero values" doesn't suppress them.

Any ideas?


  #2  
Old May 6th, 2004, 03:11 PM
Bob Barnes
external usenet poster
 
Posts: n/a
Default Suppress Zero On a Chart

Jerry - Thanks for answering.

The exact situation is...I have cells adding up 2 Named Ranges fed from Access-to-Excel
automation...."=BJun+PJun". When the automation has "nothing", the Named Ranged are
Nulls. Thus "0". Yes, using "Tools - Options - "View" Tab & unchecking "Zero values"
suppresses them on the Worksheet.

But the "Source Data" displays "0" on the Chart.

Even "=IF(BMay+PMay=0,"",BMay+PMay)" shows "0" on the Chart.

Any other thoughts?

TIA - Bob
  #3  
Old May 6th, 2004, 09:09 PM
Jon Peltier
external usenet poster
 
Posts: n/a
Default Suppress Zero On a Chart

Bob -

Read Jerry's post carefully. Use NA() in place of "". "" is a text
string, interpreted numerically as zero. NA() produces #N/A, which is
ignored by the chart (though it's not a true null either). Your formula
should be:

=IF(BMay+PMay=0,NA(),BMay+PMay)

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

Bob Barnes wrote:

Jerry - Thanks for answering.

The exact situation is...I have cells adding up 2 Named Ranges fed from Access-to-Excel
automation...."=BJun+PJun". When the automation has "nothing", the Named Ranged are
Nulls. Thus "0". Yes, using "Tools - Options - "View" Tab & unchecking "Zero values"
suppresses them on the Worksheet.

But the "Source Data" displays "0" on the Chart.

Even "=IF(BMay+PMay=0,"",BMay+PMay)" shows "0" on the Chart.

Any other thoughts?

TIA - Bob


  #4  
Old May 6th, 2004, 10:02 PM
Jonathan Parminter
external usenet poster
 
Posts: n/a
Default Suppress Zero On a Chart

Hi, I'm interested in this too. Although using this
solution produces the desired result in the chart, it has
the cascading affect that any formulae that includes this
cell also has the outcome of #NA. Therefore these formulae
need to have a check to counter this. My solution for this
is as follows... if there is a better method please advise.

Cell E4:=IF(BMay+PMay=0,NA(),BMay+PMay)
Cell F4:=Sum(A44)+IF(ISERROR(E4),0,E4))

Cheers
Jonathan


-----Original Message-----
Bob -

Read Jerry's post carefully. Use NA() in place of "". ""

is a text
string, interpreted numerically as zero. NA() produces

#N/A, which is
ignored by the chart (though it's not a true null

either). Your formula
should be:

=IF(BMay+PMay=0,NA(),BMay+PMay)

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

Bob Barnes wrote:

Jerry - Thanks for answering.

The exact situation is...I have cells adding up 2 Named

Ranges fed from Access-to-Excel
automation...."=BJun+PJun". When the automation

has "nothing", the Named Ranged are
Nulls. Thus "0". Yes, using "Tools - Options - "View"

Tab & unchecking "Zero values"
suppresses them on the Worksheet.

But the "Source Data" displays "0" on the Chart.

Even "=IF(BMay+PMay=0,"",BMay+PMay)" shows "0" on the

Chart.

Any other thoughts?

TIA - Bob


.

  #5  
Old May 6th, 2004, 11:16 PM
Bob Barnes
external usenet poster
 
Posts: n/a
Default Suppress Zero On a Chart

Jonathan - Don't know your answer,
but I'll monitor.

Thank you, Bob
  #6  
Old May 6th, 2004, 11:16 PM
Bob Barnes
external usenet poster
 
Posts: n/a
Default Suppress Zero On a Chart

Jon - You Are Correct - Thank you.

How's it going? You can send to the Email address
you have for me.

Bob
  #7  
Old May 7th, 2004, 02:20 AM
Jerry W. Lewis
external usenet poster
 
Posts: n/a
Default Suppress Zero On a Chart

The lack of a true null in Excel is a pain. You can either

- have two sets of the same data, one for charting (with #N/A for
nulls, and the other with 0 or "" for nulls for calculations.

- use more complex formulas for calculations. Separating every linked
cell could become unwieldy, instead use an array formula like
=SUM(IF(ISERROR(A4:E4),,A4:E4))
which must be array entered (Ctrl-Shift-Enter) to work. This will allow
any or all of the referenced cells to be linked and possibly null.

Jerry

Jonathan Parminter wrote:

Hi, I'm interested in this too. Although using this
solution produces the desired result in the chart, it has
the cascading affect that any formulae that includes this
cell also has the outcome of #NA. Therefore these formulae
need to have a check to counter this. My solution for this
is as follows... if there is a better method please advise.

Cell E4:=IF(BMay+PMay=0,NA(),BMay+PMay)
Cell F4:=Sum(A44)+IF(ISERROR(E4),0,E4))

Cheers
Jonathan



-----Original Message-----
Bob -

Read Jerry's post carefully. Use NA() in place of "". ""

is a text

string, interpreted numerically as zero. NA() produces

#N/A, which is

ignored by the chart (though it's not a true null

either). Your formula

should be:

=IF(BMay+PMay=0,NA(),BMay+PMay)

- Jon


  #8  
Old May 7th, 2004, 02:27 AM
Jon Peltier
external usenet poster
 
Posts: n/a
Default Suppress Zero On a Chart

I usually go with dual ranges, one that looks nice for the report,
another that works nice for the chart. I can usually expect to mess up a
formula if I try to get too clever. KISS.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

Jerry W. Lewis wrote:

The lack of a true null in Excel is a pain. You can either

- have two sets of the same data, one for charting (with #N/A for
nulls, and the other with 0 or "" for nulls for calculations.

- use more complex formulas for calculations. Separating every linked
cell could become unwieldy, instead use an array formula like
=SUM(IF(ISERROR(A4:E4),,A4:E4))
which must be array entered (Ctrl-Shift-Enter) to work. This will allow
any or all of the referenced cells to be linked and possibly null.

Jerry

Jonathan Parminter wrote:

Hi, I'm interested in this too. Although using this solution produces
the desired result in the chart, it has the cascading affect that any
formulae that includes this cell also has the outcome of #NA.
Therefore these formulae need to have a check to counter this. My
solution for this is as follows... if there is a better method please
advise.

Cell E4:=IF(BMay+PMay=0,NA(),BMay+PMay)
Cell F4:=Sum(A44)+IF(ISERROR(E4),0,E4))

Cheers
Jonathan



-----Original Message-----
Bob -

Read Jerry's post carefully. Use NA() in place of "". ""


is a text

string, interpreted numerically as zero. NA() produces


#N/A, which is

ignored by the chart (though it's not a true null


either). Your formula

should be:

=IF(BMay+PMay=0,NA(),BMay+PMay)

- Jon




  #9  
Old May 7th, 2004, 04:45 AM
Jonathan Parminter
external usenet poster
 
Posts: n/a
Default Suppress Zero On a Chart

Thanks Jerry,

works well :-)

Cheers
Jonathan

-----Original Message-----
The lack of a true null in Excel is a pain. You can

either

- have two sets of the same data, one for charting

(with #N/A for
nulls, and the other with 0 or "" for nulls for

calculations.

- use more complex formulas for calculations.

Separating every linked
cell could become unwieldy, instead use an array formula

like
=SUM(IF(ISERROR(A4:E4),,A4:E4))
which must be array entered (Ctrl-Shift-Enter) to work.

This will allow
any or all of the referenced cells to be linked and

possibly null.

Jerry

Jonathan Parminter wrote:

Hi, I'm interested in this too. Although using this
solution produces the desired result in the chart, it

has
the cascading affect that any formulae that includes

this
cell also has the outcome of #NA. Therefore these

formulae
need to have a check to counter this. My solution for

this
is as follows... if there is a better method please

advise.

Cell E4:=IF(BMay+PMay=0,NA(),BMay+PMay)
Cell F4:=Sum(A44)+IF(ISERROR(E4),0,E4))

Cheers
Jonathan



-----Original Message-----
Bob -

Read Jerry's post carefully. Use NA() in place

of "". ""

is a text

string, interpreted numerically as zero. NA() produces

#N/A, which is

ignored by the chart (though it's not a true null

either). Your formula

should be:

=IF(BMay+PMay=0,NA(),BMay+PMay)

- Jon


.

  #10  
Old May 7th, 2004, 12:16 PM
Jerry W. Lewis
external usenet poster
 
Posts: n/a
Default Suppress Zero On a Chart

My personal preference is for only one copy of the data, otherwise
subsequent updates must be made in two places, but I certainly
understand the reason people might prefer the alternative.

Jerry

Jon Peltier wrote:

I usually go with dual ranges, one that looks nice for the report,
another that works nice for the chart. I can usually expect to mess up a
formula if I try to get too clever. KISS.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

Jerry W. Lewis wrote:

The lack of a true null in Excel is a pain. You can either

- have two sets of the same data, one for charting (with #N/A for
nulls, and the other with 0 or "" for nulls for calculations.

- use more complex formulas for calculations. Separating every
linked cell could become unwieldy, instead use an array formula like
=SUM(IF(ISERROR(A4:E4),,A4:E4))
which must be array entered (Ctrl-Shift-Enter) to work. This will
allow any or all of the referenced cells to be linked and possibly null.

Jerry

Jonathan Parminter wrote:

Hi, I'm interested in this too. Although using this solution produces
the desired result in the chart, it has the cascading affect that any
formulae that includes this cell also has the outcome of #NA.
Therefore these formulae need to have a check to counter this. My
solution for this is as follows... if there is a better method please
advise.

Cell E4:=IF(BMay+PMay=0,NA(),BMay+PMay)
Cell F4:=Sum(A44)+IF(ISERROR(E4),0,E4))

Cheers
Jonathan



-----Original Message-----
Bob -

Read Jerry's post carefully. Use NA() in place of "". ""


is a text

string, interpreted numerically as zero. NA() produces


#N/A, which is

ignored by the chart (though it's not a true null


either). Your formula

should be:

=IF(BMay+PMay=0,NA(),BMay+PMay)

- Jon





 




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 05:21 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.