Adding OR criteria to IF statement

miva0601

New Member
Joined
Mar 31, 2015
Messages
33
Hello,

I'm trying to add an additional OR condition to the below statement. If column G starts with a '4' or '7', then it should be treated same as the when the district starts with a '3'. Greatly appreciate anyone who can help me figure this out. I've tried adding this as another IF condition but think OR might cleaner.

Both BY7 and BY8 should say 'Yes"

Admin Fee D- Test.xlsx
ABCDEFGBUBVBWBXBY
1DCDC NameCustomerCustomer NameSAMPLECATEGORYDistrictCRITERIAAdjusted BPRAdjusted GPRAdjusted GCRHighly Compliant?
2321A1234AAA1101100Y101.23084.0000.000No
3213B12345BBB2301100Y909024.000Yes
4142C123456CCC3311100Y100.00079.00015.000No
5234D1234567DDD4111100Y90.23087.4300.000No
6456E144246EEE5111100Y94.00090.0000.000Yes
7658F3216FFF6701100Y99.04095.01030.000No
8789G35486GGG7401100Y100.000122.00040.000No
VariaVM
Cell Formulas
RangeFormula
BY2:BY8BY2=IFERROR(IF(VALUE(LEFT(G2,1))=1,IF(AND(BU2="Y",BV2>=90,BW2>=90),"Yes","No"),IF(VALUE(LEFT(G2,1))=3,IF(AND(BU2="Y",BX2>=24),"Yes","No"),"No")),IF(G2="Not Assigned",IF(AND(BU2="Y",BV2>=90,BW2>=90),"Yes","No"),"Review"))
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
How about
Excel Formula:
=IFERROR(IF(VALUE(LEFT(G2,1))=1,IF(AND(BU2="Y",BV2>=90,BW2>=90),"Yes","No"),IF(OR(LEFT(G2)+0={3,4,7}),IF(AND(BU2="Y",BX2>=24),"Yes","No"),"No")),IF(G2="Not Assigned",IF(AND(BU2="Y",BV2>=90,BW2>=90),"Yes","No"),"Review"))
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,716
Members
452,939
Latest member
WCrawford

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