IF formula, multiple criteria

mj_1986

New Member
Joined
Jun 10, 2015
Messages
7
I have a set of data and need a formula that will give me the result

IF Criteria 1 = Y, Criteria 2 = N, Criteria 3 = N --> Result 1
IF Criteria 1 = Y, Criteria 2 = Y, Criteria 3 = N --> Result 2
IF Criteria 1 = N, Criteria 2 = N, Criteria 3 = N --> Result 3

Any assistance would be greatly appreciated!

1714436918387.png
 

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 mj_1986,

There's probably an easier way but this will do the job (note zero is return if none of the three criteria are net):

=IF(AND(A2="Y",B2="N",C2="N"),1,IF(AND(A2="Y",B2="Y",C2="N"),2,IF(AND(A2="N",B2="N",C2="N"),3,0)))

You may have to change the cell references to suit.

Regards,

Robert
 
Upvote 0
Book1
ABCDE
1Criteria 1Criteria 2Criteria 3Result
2YNN1
3YYN2
4NNN3
5 
Sheet1
Cell Formulas
RangeFormula
E2:E5E2=IFERROR(MATCH(A2&B2&C2,{"YNN";"YYN";"NNN"},0),"")
 
Upvote 0

Forum statistics

Threads
1,216,759
Messages
6,132,550
Members
449,735
Latest member
Gary_M

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