Vlook-up two criteria in two sheets

FGaxha

Board Regular
Joined
Jan 10, 2023
Messages
227
Office Version
  1. 365
Platform
  1. Windows
Hi master,
I need help in vlookup formula.

Sheet1:A B C
Sheet2: A B C D

In sheet1 column C: =vlook-up(A&B,sheet2! A&B,3,0)

Thank you. 🙏
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
One of possibilities will be:
Excel Formula:
=INDEX(Sheet2!$D$1:$D$10,SUM((A1=Sheet2!$A$1:$A$10)*(B1=Sheet2!$B$1:$B$10)*ROW($1:$10)))
replace all $10 with your last row in Sheet2 like $1000 or something like that. In older versions of excel this formula has to be array commmitted (with Ctrl+Shift+Enter, not just with Enter)

Another one, as you are using Excel 365 will be:
Excel Formula:
=XLOOKUP(A1&B1;Sheet2!A:A&Sheet2!B:B;Sheet2!D:D;;0)
 
Upvote 0
Hi, I can't be 100% sure what you are trying to do, but this was an alternative approach that I took, assuming you are on O365 as you say.

Book1
ABC
1
2SteveThomasdata1
3RichHalldata2
4IanDanterdata3
5FredHall
6JimJones
7
Sheet1
Cell Formulas
RangeFormula
C2:C4C2=FILTER(Sheet2!C$1:C$5,(Sheet2!A$1:A$5 = A2)*(Sheet2!B$1:B$5 = B2),"")


Book1
ABC
1SteveThomasdata1
2RichHalldata2
3IanDanterdata3
4FredHalldata4
5JimJonesdata5
Sheet2
 
Upvote 1
Solution
Great, glad it worked, thanks for the feedback.

Rob
 
Upvote 0

Forum statistics

Threads
1,221,572
Messages
6,160,573
Members
451,656
Latest member
SBulinski1975

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