how do you write a formula to make a cell null?

jisen77895

New Member
Joined
Dec 8, 2005
Messages
19
In cellB1 I have a formula as follows:
IF(CS154<>0,1-(CR154/CS154),"")

B1 is linked to a graph. If CR154 = 0 I really want B1 to be null, not contain something that will appear on the graph as 0.

B1 is formatted as 0.0%.

If B2 is truly null, I can't write
IF(CS154<>0,1-(CR154/CS154),b2) because the result shows 0.0%.

How can I write a formula so that the false portion of the IF statement makes the cell null?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
actually to be more precise what I'm trying to do is show on a graph that a particular month had no data, there is just a space in the line, not a line that slopes to the x-axis for the month with no data. In order to get a space in the graphed line, the cell must be null.
 
Upvote 0
Thank you so much. na() works great!

Anytime I want to be humbled I just come to this sight. But it's nice to have such terrific quick help!
 
Upvote 0

Forum statistics

Threads
1,213,515
Messages
6,114,080
Members
448,548
Latest member
harryls

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