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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,704
Messages
6,126,321
Members
449,308
Latest member
Ronaldj

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