View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.charting
Andy Pope Andy Pope is offline
external usenet poster
 
Posts: 2,489
Default Have a formula yield a true blank that disconnects graph line

Hi,

If a cell contains something then the chart will plot it. Depending upon
the content what is plotted will vary.
Zero and text are plotted as zero.
NA() is not plotted - but if the option 'Not Plotted (leave gaps)' or
'interpolated' is used then the line will connect the valid points
either side. If 'Plot as zero' is used that is what is plotted, zero.

Have a look at this page for a possible work around.
http://www.andypope.info/charts/brokenlines.htm

Cheers
Andy

Mr. Owl wrote:
I use a formula to calculate values or use set criteria to yield blanks.
Then I graph the data and want the line graph to end where a blank occurs
rather than connect the line to zero where the blank occurs. Actually all
blanks are plotted as zeros, but I could enter -1 instead of blank and make
the scale minimum zero to eliminate this problem if the line did not connect
from the last data point to the -1 or zero.

This problem is not cured by copypaste specialvalues even though the
blanks then no longer contain formula but look indistinguishable from real
blanks. But they do not behave as real blanks, for example, when hitting
enddown arrow.


--

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