# Formula

#### Ben S

##### Board Regular
Hi i need to add these two formulas together but don't know how to do it. Please help.

=IF(AND(I5="YES",J5="YES",K5="YES",L5="NO"),"YES","NO")

OR

=IF(AND(I5="YES",J5="NO",K5="NO",L5="NO"),"YES","NO")

### Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

#### Iridium

##### Well-known Member
On 2002-11-05 06:43, Ben S wrote:
Hi i need to add these two formulas together but don't know how to do it. Please help.

=IF(AND(I5="YES",J5="YES",K5="YES",L5="NO"),"YES","NO")

OR

=IF(AND(I5="YES",J5="NO",K5="NO",L5="NO"),"YES","NO")

Give this a go -

=IF(AND(I5="YES",J5="YES",K5="YES",L5="NO"),"YES",IF(AND(I5="YES",J5="NO",K5="NO",L5="NO"),"YES","NO"))

#### Andrew Poulsom

##### MrExcel MVP
Try this:

=IF(AND(I5="YES",OR(J5="YES",J5="NO"),OR(K5="YES",K5="NO"),L5="NO"),"YES","NO")

#### Ben S

##### Board Regular
No both equations don't seem to work

#### Andrew Poulsom

##### MrExcel MVP
Well they fit your specification.

Post an example and the expected results.

#### Ben S

##### Board Regular
Got them working thanks. My mistake!

Replies
11
Views
303
Replies
1
Views
65
Replies
4
Views
81
Replies
4
Views
129
Replies
11
Views
297

1,147,451
Messages
5,741,202
Members
423,648
Latest member
steel1968

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

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