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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
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,553
Messages
6,114,279
Members
448,562
Latest member
Flashbond

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