Using 'AND' and 'OR' function alongwith 'IF' function

patamey

New Member
Joined
Mar 14, 2016
Messages
7
I am unable to give correct command in excel for a certain condition. My condition is - If a Company is Listed Company then OR even if Its a Public Company but fulfills certain criteria - the result should be "Applicable" else "Not Applicable"

The Formula I am trying is -
=IF(OR(AND($B$3="Yes"),AND($B$2="Public",$B$10>=100000000,$B$14>=1000000000,$B$20>=500000000)),"Applicable","Not Applicable")

In the above case, the Company is not Listed - but its a Public Limited Company satisfying the criteria. But it still gives output as "Not Applicable". Please help me fix the formula.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi,

I'm almost certain that you just got your AND & OR mixed up in your formula, but I'm unable to help because I'm uncertain how B3, B2, B10, B14, B20 relates to your formula/criteria.
Please explain.

This is just a guess:

=IF(OR($B$3="Yes",AND($B$2="Public",$B$10>=100000000,$B$14>=1000000000,$B$20>=500000000)),"Applicable","Not Applicable")
 
Last edited:
Upvote 0
Hi and welcome,

I'd be inclined to think this is what you're looking for

=IF(AND(OR($B$3="Yes", $B$2="Public"),$B$10>=100000000,$B$14>=1000000000,$B$20>=500000000)),"Applicable","Not Applicable")

So if B3 = Yes (Listed) OR B2 = Public AND B10, B14, B20 are all greater than or equal to their respective values.

Regards

Dave
 
Upvote 0
Dear Dave,

Thanks for quick response. Your assumption is 90% correct. However, I don't want ALL of B10, B14, B20 to be greater, instead, what I want is-

So if B3 = Yes (Listed) OR B2 = Public AND either of B10, B14 or B20 is greater than or equal to their respective values then the answer should be 'Applicable' else 'Not Applicable'
 
Upvote 0
Just wrap those in an OR in that case

=IF(AND(OR($B$3="Yes", $B$2="Public"),OR($B$10>=100000000,$B$14>=1000000000,$B$20>=500000000)),"Applicable","Not Applicable")
 
Upvote 0
Thats Great Dave!

I guess that's sorted! Thanks a lot! You are genius.. The Forum is awesome! Hats off Sir!
 
Upvote 0
I think this will give more accurate results.

=IF(OR($B$3="Yes",AND($B$2="Public",OR($B$10>=100000000,$B$14>=1000000000,$B$20>=500000000))),"Applicable","Not Applicable")
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

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