Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default charts with #N/A and other "non"-data

Greetings:

I am charting data which is not contiguous. If I leave a cell empty,
the chart treats it like a zero (which it isn't). If I drop a #N/A
into the cell, the chart ignores it, which is fine. On the downside,
if there's a #N/A within the base data, AVERAGE() will return #N/A too.

I'd like to have my cake and eat it too. Suggestions?

Thanks;
Duncan

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default charts with #N/A and other "non"-data

Sorry, one more thing -- please respond to the group, as email to this
address is automatically deleted. Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default charts with #N/A and other "non"-data

Hi Duncan,

Select your chart and look at Tools/Options/Chart and the options for "Plot
empty cells as"

Regards,
Peter T

"Duncan A. McRae" wrote in message
oups.com...
Greetings:

I am charting data which is not contiguous. If I leave a cell empty,
the chart treats it like a zero (which it isn't). If I drop a #N/A
into the cell, the chart ignores it, which is fine. On the downside,
if there's a #N/A within the base data, AVERAGE() will return #N/A too.

I'd like to have my cake and eat it too. Suggestions?

Thanks;
Duncan



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default charts with #N/A and other "non"-data

Hi Peter, thanks for getting back to me.

In the Options dialogue, it's set to "Plot visible cells only" and
"Plot empty cells as Not Plotted (leave gaps)". In Column C I have the
following formula:

=IF(B310,CONVERT(B31,"lbm","kg"),"-").
or
IF value0 THEN convert value from pounds to kilograms ELSE show
hyphen

Right now, where a "-" exists, the chart is interpreting it as a zero
and dropping lines to the bottom.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default charts with #N/A and other "non"-data

OK I follow, AFAIK there's no direct solution to end up displaying "-" for
your zero & -ve values and have the chart ignore them.

Clearly you need the #N/A which you can format to visually appear as a blank
cell, two ways -

Conditional Format:
select the first cell in your list (below assumes it's A1)
Formula Is =ISERROR(A1)
format font to white
copy down (note no $ in the formula)

Custom number format:
[Black]general (change general as required)
Format font in all cells to white

and change your formula to
=IF(B310,CONVERT(B31,"lbm","kg"),#N/A).

Regards,
Peter T

"Duncan A. McRae" wrote in message
ups.com...
Hi Peter, thanks for getting back to me.

In the Options dialogue, it's set to "Plot visible cells only" and
"Plot empty cells as Not Plotted (leave gaps)". In Column C I have the
following formula:

=IF(B310,CONVERT(B31,"lbm","kg"),"-").
or
IF value0 THEN convert value from pounds to kilograms ELSE show
hyphen

Right now, where a "-" exists, the chart is interpreting it as a zero
and dropping lines to the bottom.





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default charts with #N/A and other "non"-data

OK I follow, AFAIK there's no direct solution to end up displaying "-" for
your zero & -ve values and have the chart ignore them.


What's important to me is the chart -- I don't care for the formatting
of the data at all. I only used #N/A because anything else I've tried
is charted as a zero. When I have values which are (appropriately) in
the 70's and 80's, the chart looks awful when the lines suddenly take a
dive for the x axis. sigh<<<

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Some charts won't let data labels to be at "Outside end" Kompu Kid Charts and Charting in Excel 4 April 5th 23 02:58 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Excel 2003 - Charts - "Data Range" and Date/Time data on X-Axis erik Charts and Charting in Excel 1 August 20th 07 02:50 PM
Macro to concatenate into "B1" B2 thru B"x" based on new data in "Col A" Dennis Excel Discussion (Misc queries) 0 July 17th 06 02:38 PM
Adding "New" "Insert" "Delete" into a workbook to change from data 1 to data 2 etc Bob Reynolds[_2_] Excel Programming 0 March 4th 04 08:52 PM


All times are GMT +1. The time now is 03:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"