Zero length string on chart

  • Thread starter Thread starter Joe M.
  • Start date Start date
J

Joe M.

Hi. I am trying to create some "MARKERS" at the top of a line chart. I'm
using a series as a line to mark the top of the graph. The purpose of the
markers are to indicate if a certain event took place in a particular month.
There are other series plotted on other lines below for actual data. i.e. if
my vert axis highest value is 200 then the values I'm setting for my marker
is 190 so that the marker appears close to the top. I've made the line the
same color as the graph background so that only the markers appear. If i
leave the cell blank then there is no marker in the column which is what I
want. But I don't want the user to enter a value to indicate the event.
Instead I would like them to enter an X. So I'm using a formula create a
value or zero length string for the marker. The X is to be placed in col B,
with the formula given values for my markers in col C. The list of values
where I'm getting the max value is in col D. So my formula is:
=if(b2<>"",MAX(D2:D13),""). The problem is if the cell in col B is blank, the
marker still appears but at the bottom of the graph. If I erase the formula
then the marker dissapears. Should i set the false condition to something
else?

Thanks!
Joe M.
 
Set the false condition to NA() (which is ignored by line charts)

=if(b2<>"",MAX(D2:D13),NA())
 
Back
Top