Why would this = nothing?

SandsB

Well-known Member
Joined
Feb 13, 2007
Messages
731
Office Version
  1. 365
Platform
  1. Windows
The value in B15 is 0

The value in C15 is 525

D15 is =IF(B15=0,NA(),B15). I made this spreadsheet so many years ago I forgot why I used that formula, but I think it had something to do with some charts in a file somebody else made to use my data.
D15 is blank

E15 is =IF(C15=0,NA(),C15).
E15 has a value of 525

F15 is =D15+E15 and is blank, not 525. Why is that?
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
That formula will return #N/A if B15 is blank or zero. It sounds like you have hidden the errors in some way, possibly by conditional formatting.
 
Upvote 0
B15 has never been 0 before and it's always worked.
 
Upvote 0
Conditional formatting is =ISNA(F3).
That formula will return #N/A if B15 is blank or zero. It sounds like you have hidden the errors in some way, possibly by conditional formatting.
That formula will return #N/A if B15 is blank or zero. It sounds like you have hidden the errors in some way, possibly by conditional formatting.
Fluff is right, Conditional formatting with a white font hid the true value of #N/A. Anybody know a better way to get =D15+E15 if the value of one of those 2 cells is #N/A?
 
Upvote 0
Perfect - thank you
Thanks for letting us know. Glad we could help. @Fluff did the hard part in identifying that the conditional formatting was hiding the #NA.

If you want 0 if either value is #N/A
=IFNA(D15+E15,0)
In case the OP doesn't comment further, The NA in D15 was used purely to make the chart work but for calculation purposes it needed to be 0.
 
Upvote 0

Forum statistics

Threads
1,224,053
Messages
6,176,102
Members
452,706
Latest member
must_try_harder

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