IF OR formula

audrey

Active Member
Joined
Jul 30, 2008
Messages
491
Hello,

I am trying to make a simple IF OR formula, but for some reason it doesnt seem to work....

=IF(OR(N60="N/A", M60="N/A", N60-M60<0,"",N60-M60)


so basically in those 3 cases I want the formula to leave a blank, if non of those cases are realized I want the formula to perfom a basic substraction.

I think I can also use IF(ISNUMBER formula??? If n60 or M60 is not an actual number leave blank or perfom a basic substraction.....


Thanks!
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi Audrey,

It seems a parentheses is missing.

Code:
=IF(OR(N60="N/A", M60="N/A", N60-M60<0[B][COLOR=Red])[/COLOR][/B],"",N60-M60)

Regards
 
Upvote 0
Hello Marcelo,

the formula you have written should have worked but for some reason I still get this error

pbpt4.jpg
 
Upvote 0
It worked for me, unless i have a text in one cell, not a number. Check it, please.

M.
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,239
Members
452,898
Latest member
Capolavoro009

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