Peform a vlookup using 3 conditions (non-numerical)...

ladyday

New Member
Joined
Dec 1, 2016
Messages
15
Hi,

I need assistance performing a vlook up in a table where I would like the formula to look at the data in Sheet 1, Columns A & B and if they match the information in Sheet 2, Columns A & B (same data) go back to Sheet 1 and look at the status of Column C and return a value of Y for pass or N for fail in Column C. I hope I said that correctly.

[TABLE="width: 266"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[/TR]
[TR]
[TD]Series[/TD]
[TD]Title[/TD]
[TD]Status[/TD]
[/TR]
[TR]
[TD]Grimm[/TD]
[TD]Bad Night[/TD]
[TD]Fail[/TD]
[/TR]
[TR]
[TD]Queen Sugar[/TD]
[TD]All Good[/TD]
[TD]Fail[/TD]
[/TR]
[TR]
[TD]Chicago Fire[/TD]
[TD]That Day[/TD]
[TD]Pass[/TD]
[/TR]
[TR]
[TD]This is Us[/TD]
[TD]Pilgrim Rick[/TD]
[TD]Pass[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Try this (note that you will have to adjust the ranges in the formula to match your data)


Excel 2010
ABC
1Column AColumn BColumn C
2SeriesTitleStatus
3GrimmBad NightFail
4Queen SugarAll GoodFail
5Chicago FireThat DayPass
6This is UsPilgrim RickPass
Sheet1



Excel 2010
ABC
1Column AColumn BFormula
2GrimmBad NightFail
3Chicago FireThat DayPass
4SeriesTitleStatus
5Queen SugarAll GoodFail
6This is UsPilgrim RickPass
Sheet2
Cell Formulas
RangeFormula
C2{=INDEX(Sheet1!$C$2:$C$6,MATCH(Sheet2!A2&Sheet2!B2,Sheet1!$A$2:$A$6&Sheet1!$B$2:$B$6,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
If I'm understanding correctly maybe...

Excel 2013
ABC
N
N
Y
Y

<tbody>
[TD="align: center"]1[/TD]
[TD="bgcolor: #FAFAFA"]Series[/TD]
[TD="bgcolor: #FAFAFA"]Title[/TD]
[TD="bgcolor: #FAFAFA"]Status[/TD]

[TD="align: center"]2[/TD]
[TD="bgcolor: #FAFAFA"]Grimm[/TD]
[TD="bgcolor: #FAFAFA"]Bad Night[/TD]
[TD="bgcolor: #FAFAFA"]Fail[/TD]

[TD="align: center"]3[/TD]
[TD="bgcolor: #FAFAFA"]Queen Sugar[/TD]
[TD="bgcolor: #FAFAFA"]All Good[/TD]
[TD="bgcolor: #FAFAFA"]Fail[/TD]

[TD="align: center"]4[/TD]
[TD="bgcolor: #FAFAFA"]Chicago Fire[/TD]
[TD="bgcolor: #FAFAFA"]That Day[/TD]
[TD="bgcolor: #FAFAFA"]Pass[/TD]

[TD="align: center"]5[/TD]
[TD="bgcolor: #FAFAFA"]This is Us[/TD]
[TD="bgcolor: #FAFAFA"]Pilgrim Rick[/TD]
[TD="bgcolor: #FAFAFA"]Pass[/TD]

[TD="align: center"]6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]7[/TD]
[TD="bgcolor: #FAFAFA"]Series[/TD]
[TD="bgcolor: #FAFAFA"]Title[/TD]
[TD="bgcolor: #FAFAFA"]Pass/Fail[/TD]

[TD="align: center"]8[/TD]
[TD="bgcolor: #FAFAFA"]Grimm[/TD]
[TD="bgcolor: #FAFAFA"]Bad Night[/TD]

[TD="align: center"]9[/TD]
[TD="bgcolor: #FAFAFA"]Queen Sugar[/TD]
[TD="bgcolor: #FAFAFA"]All Good[/TD]

[TD="align: center"]10[/TD]
[TD="bgcolor: #FAFAFA"]Chicago Fire[/TD]
[TD="bgcolor: #FAFAFA"]That Day[/TD]

[TD="align: center"]11[/TD]
[TD="bgcolor: #FAFAFA"]This is Us[/TD]
[TD="bgcolor: #FAFAFA"]Pilgrim Rick[/TD]

</tbody>
Sheet4

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<tbody>[TR="bgcolor: #DAE7F5"]
[TH]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
[TR]
[TH="bgcolor: #DAE7F5"]C8[/TH]
[TD="align: left"]=IF(COUNTIFS($A$2:$A$5,A8,$B$2:$B$5,B8,$C$2:$C$5,"Pass"),"Y","N")[/TD]
[/TR]
[TR]
[TH="bgcolor: #DAE7F5"]C9[/TH]
[TD="align: left"]=IF(COUNTIFS($A$2:$A$5,A9,$B$2:$B$5,B9,$C$2:$C$5,"Pass"),"Y","N")[/TD]
[/TR]
[TR]
[TH="bgcolor: #DAE7F5"]C10[/TH]
[TD="align: left"]=IF(COUNTIFS($A$2:$A$5,A10,$B$2:$B$5,B10,$C$2:$C$5,"Pass"),"Y","N")[/TD]
[/TR]
[TR]
[TH="bgcolor: #DAE7F5"]C11[/TH]
[TD="align: left"]=IF(COUNTIFS($A$2:$A$5,A11,$B$2:$B$5,B11,$C$2:$C$5,"Pass"),"Y","N")[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
This actually worked fine between the two sheets. How can I add the pass = Y component to this array?
 
Upvote 0
Sorry it is this formulat that worked fine between the two sheets. How can I add the pass = Y component to this array?
 
Upvote 0

Excel 2010
ABC
1SeriesTitleStatus
2GrimmBad NightFail
3Queen SugarAll GoodFail
4Chicago FireThat DayPass
5This is UsPilgrim RickPass
Sheet1



Excel 2010
ABC
1SeriesTitlePass?
2GrimmBad NightN
3Queen SugarAll GoodN
4Chicago FireThat DayY
5This is UsPilgrim RickY
Sheet2
Cell Formulas
RangeFormula
C2{=IF(INDEX(Sheet1!$C$2:$C$6,MATCH(Sheet2!A2&Sheet2!B2,Sheet1!$A$2:$A$6&Sheet1!$B$2:$B$6,0))="Pass","Y","N")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,876
Members
452,363
Latest member
merico17

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