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

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
sorry falcondude, the question was meant for the OP, i was just curious why they wanted to stay with the lookup formula
 
Upvote 0
I know I am being a pain but I realized I need the data to pull into the first table. The formula works perfect if I put the data in the second table so I figured I would reverse the sheet names and it isn't working. I keep receiving a #NAME error message. Would you kindly take a look at the formula and tell me what I need to do pull the data into the first table.
 
Upvote 0
I know I am being a pain but I realized I need the data to pull into the first table. The formula works perfect if I put the data in the second table so I figured I would reverse the sheet names and it isn't working. I keep receiving a #NAME error message. Would you kindly take a look at the formula and tell me what I need to do pull the data into the first table.

So you are looking to put the formula in Sheet1 now? If so, try this: (Based off of Weazel's formula)


Excel 2010
ABC
1SeriesTitleStatus
2GrimmBad NightN
3Queen SugarAll GoodN
4Chicago FireThat DayY
5This is UsPilgrim RickY
Sheet1
Cell Formulas
RangeFormula
C2=IF(COUNTIFS(Sheet2!A:A,Sheet1!A2,Sheet2!B:B,Sheet1!B2,Sheet2!C:C,"Pass"),"Y","N")



Excel 2010
ABC
1SeriesTitleStatus
2GrimmBad NightFail
3Queen SugarAll GoodFail
4Chicago FireThat DayPass
5This is UsPilgrim RickPass
Sheet2
 
Upvote 0
Depending on the version of excel you are using, countifs may not be available which would be one reason you could be getting the #NAME error.

An alternative would be the sumproduct if you're not able to get FalconDudes formula to work correctly

Excel 2010
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>
Sheet1

Worksheet Formulas
CellFormula
C8=IF(SUMPRODUCT((Sheet1!$A$2:$A$5=A8)*(Sheet1!$B$2:$B$5=B8)*(Sheet1!$C$2:$C$5="Pass")),"Y","N")

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Thanks but neither the sumproduct nor the if countifs are working. All return a value of N.
 
Upvote 0
Can anyone tell me what is wrong with my formula: {=IF(INDEX('QC Status'!N2:N1365,MATCH('Episode List'!D2:D1365!&'Episode List'!E2:E1365'!,'QC Status'!$A$2:$A$1365&'QC Status'!$B$2:$B$1365,0))="Pass","Y","N")} I am receiving a Name error.
 
Upvote 0
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

<tbody>
</tbody>

Where do you want the result? In D2 of Sheet1 or in C2 of Sheet2?
 
Upvote 0
Aladin - thank you for looking into this. I was able to figure it and get it working. It ended up being:
{=INDEX('QC Status'!$N$2:$N$1365,MATCH('Episode List'!$D2&'Episode List'!$E2,'QC Status'!$A$2:$A$1365&'QC Status'!$B$2:$B$1365,0))}
 
Upvote 0

Forum statistics

Threads
1,215,446
Messages
6,124,904
Members
449,194
Latest member
JayEggleton

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