Stop chart lines going to zero

T

Tom H

Chart lines drop to zero on last point unless cell is highlighted and delete
key pressed, which is no good if there is a formulae in the cell. Anybody
know how to cure this ??
 
T

Tushar Mehta

=?Utf-8?B? said:
Chart lines drop to zero on last point unless cell is highlighted and delete
key pressed, which is no good if there is a formulae in the cell. Anybody
know how to cure this ??
Replace the "" in the formula with NA()

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions
 
T

Tom H

Thanks for the quick reply Tushar, but this didn't fix the problem.
The formulae I am using is:- =IF(H110="","",SUM(K110/H110))

Regards Tom H
 
J

JC

Tom,

I had this same problem when I tested the suggested change in a formula I was
using. The problem was I only changed one cell as a test and the chart line
still dropped to zero due to the subsequent cells having "" instead of NA().

You have to apply this formula to all cells in the column otherwise the first
cell with "" instead of NA() will cause the chart line to drop to zero.

JC


Jon, Have tried this again and still doesn't work.

Regards Tom H
 
J

Jon Peltier

Another point: the NA() only prevents Line chart and XY chart points from
displaying. Other chart types will display a zero value for NA(). For a
column or bar chart it usually doesn't matter, since a zero value usually
just doesn't show because it's the minimum height of the axis (although
you'll get a #N/A data label if you are showing values). But an area chart
will display this drop from the last nonzero point to zero.

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

Tom H

Unfortunately this still doesn't work, even with formulae applied to all
cells, perhaps there is a way with conditional formating to switch the line
chart off ?
 
J

Jon Peltier

Okay, I suspect something wasn't adequately communicated. What's the data
look like? What range is it in? What does the series formula look like. What
does the formula in the worksheet look like? What cells is it in? What do
the results of the formula look like.

If you can't get this to work, you won't be able to get any conditional
formatting to work in the chart either, because conditional formatting in a
chart is based on similar formulas incorporating NA().

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

Tom H

Jon,

Went back through all the formulaes upsteam of the empty cells and found one
that still had the old formulae in - Now works fine on the graph, but #N/A
shows in the data cells that don't have a result in. Is there a way to stop
the #N/A from showing, as this is also interfering with other formulaes -
Thanks.
 
J

JC

Tom,

You could try a trick I used. I set up 'helper' columns off screen purely for
graphing purposes. The columns on screen had formulas similar to
=IF(H110="","",SUM(K110/H110))
while those off screen, used only for graphing, were similar to
=IF(H110="",NA(),SUM(K110/H110))

If you do this the graphing will work fine and there should be no interference
with other formulas as they will use the on screen cells for their inputs.

JC
 
J

Jon Peltier

Helper columns is one decent way to do this, or even a whole separate range.
Another way, if the data is simple enough and you don't need the range for
subsequent calculations is to use conditional formatting to hide the error
values.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services - Tutorials and Custom Solutions -
http://PeltierTech.com/
2006 Excel User Conference, 19-21 April, Atlantic City, NJ
http://peltiertech.com/Excel/ExcelUserConf06.html
_______
 
T

Tom H

Jon,

Have tried conditional formatting but doesn't appear to solve this problem,
so I will probably use the helper columns.

Thanks to everyone for their support and help in this matter.
Good forum for exchange of views and problem solving.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top