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.

Column AColumn BColumn C
SeriesTitleStatus
GrimmBad NightFail
Queen SugarAll GoodFail
Chicago FireThat DayPass
This is UsPilgrim RickPass

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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
1SeriesTitleStatus
2GrimmBad NightFail
3Queen SugarAll GoodFail
4Chicago FireThat DayPass
5This is UsPilgrim RickPass
6
7SeriesTitlePass/Fail
8GrimmBad NightN
9Queen SugarAll GoodN
10Chicago FireThat DayY
11This is UsPilgrim RickY

<tbody>
</tbody>
Sheet4

Worksheet Formulas
CellFormula
C8=IF(COUNTIFS($A$2:$A$5,A8,$B$2:$B$5,B8,$C$2:$C$5,"Pass"),"Y","N")
C9=IF(COUNTIFS($A$2:$A$5,A9,$B$2:$B$5,B9,$C$2:$C$5,"Pass"),"Y","N")
C10=IF(COUNTIFS($A$2:$A$5,A10,$B$2:$B$5,B10,$C$2:$C$5,"Pass"),"Y","N")
C11=IF(COUNTIFS($A$2:$A$5,A11,$B$2:$B$5,B11,$C$2:$C$5,"Pass"),"Y","N")

<tbody>
</tbody>

<tbody>
</tbody>
 
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,214,817
Messages
6,121,720
Members
449,050
Latest member
MiguekHeka

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