Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
JC
 
Posts: n/a
Default Line chart zero values

Hi,

I have several different charts running, both dynamic and static, and both types
have the same problem.

Amongst the data being plotted are cells with computed values using formulas
similar to =IF($B70,AVERAGE($B1:$B7),""). The line graphs are drawn ok
where there is real data present but at the first point where the "" is to be
graphed the line drops to 0. Subsequent points are not plotted but presumably
would be if 0 was included in the graphing range. I assume that this happens
because Excel treats text as being zero.

I have tried replacing the "" with NA() but this puts #NA in the workbook cells
and doesn't change the way the graph is presented. If NA() had worked I would
have left the cells on screen with "" as information cells and set up helper
cells off screen with NA() replacing "" purely to be used for the chart.

This is not a big problem and I can live with it as it is now but It would be
better if the graph stopped at the last entry with real data.

Is there a way to achieve this?
--

Cheers . . . JC
  #2   Report Post  
Posted to microsoft.public.excel.charting
Jon Peltier
 
Posts: n/a
Default Line chart zero values

NA() should in fact change the chart, by causing a line to be interpolated
from one data point, across a gap, to another data point. If you only
changed one "" to NA(), then the line will connect the last valid point to
the first "" after the NA(). If all values on one end of a series are NA(),
then the line stops at the last valid data point.

If you are entering something that only looks like #N/A but is in fact
interpreted as text, "#N/A" for instance, then it will behave as "".

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


"JC" wrote in message
...
Hi,

I have several different charts running, both dynamic and static, and both
types
have the same problem.

Amongst the data being plotted are cells with computed values using
formulas
similar to =IF($B70,AVERAGE($B1:$B7),""). The line graphs are drawn
ok
where there is real data present but at the first point where the "" is to
be
graphed the line drops to 0. Subsequent points are not plotted but
presumably
would be if 0 was included in the graphing range. I assume that this
happens
because Excel treats text as being zero.

I have tried replacing the "" with NA() but this puts #NA in the workbook
cells
and doesn't change the way the graph is presented. If NA() had worked I
would
have left the cells on screen with "" as information cells and set up
helper
cells off screen with NA() replacing "" purely to be used for the chart.

This is not a big problem and I can live with it as it is now but It would
be
better if the graph stopped at the last entry with real data.

Is there a way to achieve this?
--

Cheers . . . JC



  #3   Report Post  
Posted to microsoft.public.excel.charting
JC
 
Posts: n/a
Default Line chart zero values

John,

As usual you were spot on. I had only tried changing one to NA() instead of
all so the line connected to the next "" value.

Many thanks.

On Sun, 8 Jan 2006 14:49:40 -0500, "Jon Peltier"
wrote:

NA() should in fact change the chart, by causing a line to be interpolated
from one data point, across a gap, to another data point. If you only
changed one "" to NA(), then the line will connect the last valid point to
the first "" after the NA(). If all values on one end of a series are NA(),
then the line stops at the last valid data point.

If you are entering something that only looks like #N/A but is in fact
interpreted as text, "#N/A" for instance, then it will behave as "".

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


"JC" wrote in message
.. .
Hi,

I have several different charts running, both dynamic and static, and both
types
have the same problem.

Amongst the data being plotted are cells with computed values using
formulas
similar to =IF($B70,AVERAGE($B1:$B7),""). The line graphs are drawn
ok
where there is real data present but at the first point where the "" is to
be
graphed the line drops to 0. Subsequent points are not plotted but
presumably
would be if 0 was included in the graphing range. I assume that this
happens
because Excel treats text as being zero.

I have tried replacing the "" with NA() but this puts #NA in the workbook
cells
and doesn't change the way the graph is presented. If NA() had worked I
would
have left the cells on screen with "" as information cells and set up
helper
cells off screen with NA() replacing "" purely to be used for the chart.

This is not a big problem and I can live with it as it is now but It would
be
better if the graph stopped at the last entry with real data.

Is there a way to achieve this?
--

Cheers . . . JC


--

Cheers . . . JC
  #4   Report Post  
Posted to microsoft.public.excel.charting
Jon Peltier
 
Posts: n/a
Default Line chart zero values

I always try to think: if I'm doing something, and I'm in a hurry, how would
I have messed it up. (Or how do I always mess it up.)

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


"JC" wrote in message
...
John,

As usual you were spot on. I had only tried changing one to NA() instead
of
all so the line connected to the next "" value.

Many thanks.

On Sun, 8 Jan 2006 14:49:40 -0500, "Jon Peltier"
wrote:

NA() should in fact change the chart, by causing a line to be interpolated
from one data point, across a gap, to another data point. If you only
changed one "" to NA(), then the line will connect the last valid point to
the first "" after the NA(). If all values on one end of a series are
NA(),
then the line stops at the last valid data point.

If you are entering something that only looks like #N/A but is in fact
interpreted as text, "#N/A" for instance, then it will behave as "".

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


"JC" wrote in message
. ..
Hi,

I have several different charts running, both dynamic and static, and
both
types
have the same problem.

Amongst the data being plotted are cells with computed values using
formulas
similar to =IF($B70,AVERAGE($B1:$B7),""). The line graphs are drawn
ok
where there is real data present but at the first point where the "" is
to
be
graphed the line drops to 0. Subsequent points are not plotted but
presumably
would be if 0 was included in the graphing range. I assume that this
happens
because Excel treats text as being zero.

I have tried replacing the "" with NA() but this puts #NA in the
workbook
cells
and doesn't change the way the graph is presented. If NA() had worked
I
would
have left the cells on screen with "" as information cells and set up
helper
cells off screen with NA() replacing "" purely to be used for the chart.

This is not a big problem and I can live with it as it is now but It
would
be
better if the graph stopped at the last entry with real data.

Is there a way to achieve this?
--

Cheers . . . JC


--

Cheers . . . JC



  #5   Report Post  
Posted to microsoft.public.excel.charting
Bernard Liengme
 
Posts: n/a
Default Line chart zero values

Try selecting the chart (just click on it) ; use Tools|Option|Chart and set
required option in Plotting Empty Cells box
best wishes--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"JC" wrote in message
...
Hi,

I have several different charts running, both dynamic and static, and both
types
have the same problem.

Amongst the data being plotted are cells with computed values using
formulas
similar to =IF($B70,AVERAGE($B1:$B7),""). The line graphs are drawn
ok
where there is real data present but at the first point where the "" is to
be
graphed the line drops to 0. Subsequent points are not plotted but
presumably
would be if 0 was included in the graphing range. I assume that this
happens
because Excel treats text as being zero.

I have tried replacing the "" with NA() but this puts #NA in the workbook
cells
and doesn't change the way the graph is presented. If NA() had worked I
would
have left the cells on screen with "" as information cells and set up
helper
cells off screen with NA() replacing "" purely to be used for the chart.

This is not a big problem and I can live with it as it is now but It would
be
better if the graph stopped at the last entry with real data.

Is there a way to achieve this?
--

Cheers . . . JC





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
How to add a vertical line to a Line Chart that aleady has 2 Y axi ISUTUBBS Charts and Charting in Excel 1 October 28th 05 04:20 AM
Line chart or scatter chart?? rmellison Excel Discussion (Misc queries) 2 September 7th 05 12:04 PM
Null points in a line chart rmellison Excel Discussion (Misc queries) 1 September 7th 05 01:21 AM
How do I change x axis values in a line chart? Elizabeth Charts and Charting in Excel 1 March 29th 05 11:05 AM
linked values in a chart Bill H. Charts and Charting in Excel 2 January 2nd 05 05:29 AM


All times are GMT +1. The time now is 09:34 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"