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
 
Cubist is right. If any doubt about either cell you could test both:
=IF(OR(NOT(ISNUMBER(AC49)),NOT(ISNUMBER(AD49))),"",IF(AC49-AD49=0,"",AC49-AD49))
 
Upvote 0

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
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.
If the only problem is the #N/A in AC49 What about this?
Excel Formula:
=IF(IFNA(AC49-AD49,0)=0,"",AC49-AD49)

If AD49 (or AC49) contains a formula that could return "", then
Excel Formula:
=IFERROR(IF(AC49-AD49=0,"",AC49-AD49),"")
 
Upvote 0

Forum statistics

Threads
1,215,109
Messages
6,123,137
Members
449,098
Latest member
Doanvanhieu

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