# Formula Help IF AND OR i think?

##### Board Regular
Hello

I have some fields in a spreadsheet:

I2 - Numbers
BT2 - Names
AX2 - Names
CV2 - Numbers (Seconds)

I have written a formula to say that if the number in I2 is less than 1 and the names in BT2 and AX2 are the same and the CV2 is less than 3601 then Yes otherwise No which looks like this:

=IF((AND(I2<1,BT2=AX2,CV2<3601)),"Yes","No")

I need to change this to say that the names in BT2 and AX2 can be the same or the name in BT2 can be one of the following 2 names:

Paul Fisher
Darren Smith
Paul Turner

So keeping all criteria in the original formula i need to add a bit that says or if the names in BT2 are one of the above then Yes.

Hope this is making sense.

Thanks for any help

### Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

#### jasonb75

##### Well-known Member
Try

=IF((AND(I2<1,OR(BT2=AX2,ISNUMBER(MATCH(BT2,{"Paul Fisher","Darren Smith","Paul Turner"},0))),CV2<3601)),"Yes","No")

#### MrKowz

##### Well-known Member
Try:

<table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120"></th><td style="text-align:left">=IF(<font color="Blue">AND(<font color="Red">I2<1,OR(<font color="Green">BT2=AX2,BT2={"Paul Fisher","Darren Smith","Paul Turner"}</font>),CV2<3601</font>),"Yes","No"</font>) </td></tr></tbody></table></td></tr></table><br />

##### Board Regular
Thank You!!!! Perfect

##### Board Regular
Try:

<table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120"></th><td style="text-align:left">=IF(<font color="Blue">AND(<font color="Red">I2<1,OR(<font color="Green">BT2=AX2,BT2={"Paul Fisher","Darren Smith","Paul Turner"}</font>),CV2<3601</font>),"Yes","No"</font>) </td></tr></tbody></table></td></tr></table><br />

This one doesnt work.... if the name is the same it says no when it should say yes.

#### jasonb75

##### Well-known Member
Try:

Works fine for me.

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,164,651
Messages
5,838,586
Members
430,557
Latest member
MK15

### 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.

### Which adblocker are you using?

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

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