arc90 lab | tools: Link Thumbnail
Excel Help Forum
ExcelTip.com
Account Icon Account Icon Account Icon
ExcelTip.com

Go Back   Excel Help Forum > Microsoft Office Application Help - Excel Help forum > Excel Programming > Excel Charting

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-09-2005, 02:05 PM
Mike Punko
Guest
 
Posts: n/a
Removing 0 or none 0 values from graphs

Ok got this to work for Line and bar graphs haven't tried anyothers yet.
The pesky problem of yoru graphs always plotting 0 or none 0 values
(#N/A...) as 0 can be hidden in a very sneeky way. Fish off in yoru chart
put a IF statement that if the value is greater then 0 everything goes as
normal, but if it's False then enter in a value like -100. Then on yoru
graph set your Y-axis Minimun to 0. the -100 Data value will be off the
graph and won't show up. Like I said very sneeky.

If statement used.
=IF(A1>0,A1,-100)
Reply With Quote
  #2  
Old 09-09-2005, 06:05 PM
Andy Pope
Guest
 
Posts: n/a
Re: Removing 0 or none 0 values from graphs

Hi Mike,

I can see how the actual point would not show when set to -100 and the
minimum y axis value set to zero. But that does not stop the line
between points plummeting to the base line and then re surfacing a bit
further along.
Or are your line charts just points?

Cheers
Andy

Mike Punko wrote:
> Ok got this to work for Line and bar graphs haven't tried anyothers yet.
> The pesky problem of yoru graphs always plotting 0 or none 0 values
> (#N/A...) as 0 can be hidden in a very sneeky way. Fish off in yoru chart
> put a IF statement that if the value is greater then 0 everything goes as
> normal, but if it's False then enter in a value like -100. Then on yoru
> graph set your Y-axis Minimun to 0. the -100 Data value will be off the
> graph and won't show up. Like I said very sneeky.
>
> If statement used.
> =IF(A1>0,A1,-100)


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
Reply With Quote
  #3  
Old 09-09-2005, 07:05 PM
Mike Punko
Guest
 
Posts: n/a
Re: Removing 0 or none 0 values from graphs

You are corect on the line/area just plummeting but it's a lot better then
showing a line at the bottom of the graph. Not to mention with a small
change to the code you can still graph the 0 values but remove the none 0
values.

=IF(ISERROR(VALUE(A1)>=0),-100,VALUE(A1))

This will allow you to graph the true 0 values but leave out the none 0
values.


"Andy Pope" wrote:

> Hi Mike,
>
> I can see how the actual point would not show when set to -100 and the
> minimum y axis value set to zero. But that does not stop the line
> between points plummeting to the base line and then re surfacing a bit
> further along.
> Or are your line charts just points?
>
> Cheers
> Andy
>
> Mike Punko wrote:
> > Ok got this to work for Line and bar graphs haven't tried anyothers yet.
> > The pesky problem of yoru graphs always plotting 0 or none 0 values
> > (#N/A...) as 0 can be hidden in a very sneeky way. Fish off in yoru chart
> > put a IF statement that if the value is greater then 0 everything goes as
> > normal, but if it's False then enter in a value like -100. Then on yoru
> > graph set your Y-axis Minimun to 0. the -100 Data value will be off the
> > graph and won't show up. Like I said very sneeky.
> >
> > If statement used.
> > =IF(A1>0,A1,-100)

>
> --
>
> Andy Pope, Microsoft MVP - Excel
> http://www.andypope.info
>

Reply With Quote
Reply

Bookmarks

New topics in Excel Charting


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -4. The time now is 08:24 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0