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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

onlyadrafter

Well-known Member
Joined
Aug 19, 2003
Messages
5,703
Platform
  1. Windows
Hello,

I think you need it to be NA.

IF(CS154<>0,1-(CR154/CS154),na())
 

onlyadrafter

Well-known Member
Joined
Aug 19, 2003
Messages
5,703
Platform
  1. Windows
Hello,

we posted at the same time - have edited my previous post.
 

jisen77895

New Member
Joined
Dec 8, 2005
Messages
19
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.
 

jisen77895

New Member
Joined
Dec 8, 2005
Messages
19
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!
 

Forum statistics

Threads
1,137,298
Messages
5,680,684
Members
419,924
Latest member
Dhamodharan992

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
Top