NEED TO GET RID OF "N/A" FROM FORMULA RESULT.

garyt153

New Member
Joined
Mar 22, 2024
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I have several other formulas that rely on the result of this formula. =IF(SUM(AC49-AD49=0),"",(SUM(AC49-AD49)))

Everything works fine, except when the cell "AC49" is N/A - then this formula returns #VALUE and then subsequent formulas dont work.

Is there a way to modify the above formula so that when cell AC49 shows N/A - this formula can return a blank cell - not #VALUE and nor N/A.

Many thanks
 

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.
Try with OR and ISERROR. Also, the SUM functions aren't necessary.

Excel Formula:
=IF(OR(AC49-AD49=0,ISERROR(AC49-AD49)),"",AC49-AD49)
 
Upvote 0
You could also test AC49:

=IF(OR(AC49-AD49=0,NOT(ISNUMBER(AC49))),"",AC49-AD49)
 
Upvote 0
The OR is causing the problem so:
=IF(NOT(ISNUMBER(AC49)),"",IF(AC49-AD49=0,"",AC49-AD49))
 
Upvote 0
Solution
The OR is causing the problem so:
=IF(NOT(ISNUMBER(AC49)),"",IF(AC49-AD49=0,"",AC49-AD49))
Thank you - that seems to work. I will try it on some other sheets to make sure but looking good.
 
Upvote 0
It suggests that one or both values in AC49 and AD49 are not real numbers. The solution Rob suggested will sometimes yield unwanted result if the mentioned issue isn't addressed.
 
Upvote 0

Forum statistics

Threads
1,215,083
Messages
6,123,020
Members
449,092
Latest member
ikke

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