IF OR Statement

DJPaton

Board Regular
Joined
Feb 11, 2009
Messages
106
Hi Everyone, I hope tou are all well and greatings from Sydney Australia. I have a simple IF OR statement that I just cannot get to work, I am sure it is staring me in the face but alas.....

=IF(OR(G2=230070,G2=230071,BA2*70%),IF(OR(BC2=0,BA2=0,"0",BA2-BC2)

Excel keeps stating I am missing or require a parenthesis, tried a number of options for a while, any help would be hugely appreciated.

All the best

Derek
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Maybe this
Excel Formula:
=IF(OR(G2=230070,G2=230071),BA2*70%,IF(OR(BC2=0,BA2=0),"0",BA2-BC2))
 
Upvote 0
Solution
you have at least two parens or expressions wrong. although i can't tell what you really want to do.
IF(OR(G2=230070,G2=230071,BA2*70%) the underline needs to be an equation if is is part of your OR statement.
and if that is true, the next if is what happens if your first OR is TRUE, and the 2nd IF is missing a Paren after the BA2=0.
my guess is you want this:
Excel Formula:
=IF(OR(G2=230070,G2=230071),BA2*70%,IF(OR(BC2=0,BA2=0),"0",BA2-BC2))
 
Upvote 0
Maybe this
Excel Formula:
=IF(OR(G2=230070,G2=230071),BA2*70%,IF(OR(BC2=0,BA2=0),"0",BA2-BC2))
Thank you so much Michael, as mentioned in my post below the formula worked perfectly, you both cam up with the same formula which is brilliant, again thank you so very much.
 
Upvote 0

Forum statistics

Threads
1,215,086
Messages
6,123,033
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