Formula to yield a blank that won't be graphed as zero

steve case

Well-known Member
Joined
Apr 10, 2002
Messages
823
My data looks like this:

Code:
DATE |  DATA | Formula
1998 |  7112 | =IF(B2=9999,"",B2)
1999 |  9999 | 
2000 |  7059 | 7059

If I copy the formula in C2 on down and graph it out, Excel interprets "" as zero, and not as a blank cell.

Is there a way to have a formula produce a result that will be interpreted as Blank?

Background: Lots of data bases use a string of nines (9999) to represent missing data.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Try

=IF(B2=9999, NA(), B2)
 
Upvote 0
What do you want it to do?
 
Upvote 0
What do you want it to do?

I can use it with the =NA() but it really isn't right.

A straight line graph loos like: ___ using NA()

and Looks like _ _ if I delete the cells with 9999

I'm off to cut the grass for a hour or so (-: Nice day here in SE WI
 
Upvote 0
Not sure I follow that. If you want the 9999's plotted as gaps, then

o Select the raw data column and use Find and Replce to delete all instances of 9999

o Select the chart, Design > Select Data, click Hidden and Empty Cells, Show empty cells as: Gaps

Excel doesn't regard the cells that have formulas that return blanks as empty cells.
 
Upvote 0
Back from cutting the grass:

Not sure I follow that. If you want the 9999's plotted as gaps,
That's what I want

o Select the raw data column and use Find and Replce to delete all instances of 9999
That's what I've been doing

o Select the chart, Design > Select Data, click Hidden and Empty Cells, Show empty cells as: Gaps
I haven't needed to do that, but I'll keep it in mind.

Excel doesn't regard the cells that have formulas that return blanks as empty cells.
That's the answer I was getting and why I posted (-:

Thanks for the quick replies.

FYI I won't be sending Microsoft any emails telling
'em that Excel should be able to regard a formula
generated "" as a gap
 
Upvote 0
Sorted, as in, "Do you now have the behavior you want?"
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,447
Members
448,966
Latest member
DannyC96

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top