Vlookup with multiple criteria across different sheets

Henry_Falcon77

New Member
Joined
Feb 24, 2019
Messages
14
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
  2. MacOS
Hello everyone,

I have 2 different excel sheets with 1000's of people. One sheet is called Alpha and the other Beta. I want to pull the hours worked in Column L on beta sheet and paste it to the column F in alpa sheet. Each employee has a unique id code and a code for hours. I need a vlookup formula to search by unique id,code for hours, and total hours from sheet Beta and past the hours worked on Sheet Alpha, column F, by searching for the exact unique employee it with their matching code for hours. Please see attached. Thank you in advance for your help.

V LOOKUP multipl criteria across different sheets.xlsx
ABCDEFGHIJKL
1EXCEL SHEET A- HOURS ENTERED TIMESHEET ALPHAEXCEL SHEET A- HOURS ENTERED TIMESHEET BETA
2NAMEUNIQUE ID EmployeeTYPE OF HOURSCode for Hours Hours Worked on Timesheet ALPHAPULL HOURS FROM BETANAMEUNIQUE ID EmployeeTYPE OF HOURSCode for Hours Hours Worked BETA
3Mike Sharpe240vaca1702520Mike Sharpe240vaca17020
4Mike Sharpe240sick1802517Mike Sharpe240sick18017
5Mike Sharpe240overtime1301014Mike Sharpe240overtime13014
6Mike Sharpe240Comp1921014Mike Sharpe240Comp19214
7Jimmy Snuka165base hours0103015Jimmy Snuka165base hours01015
8Jimmy Snuka165vaca1702017Jimmy Snuka165vaca17017
9Jimmy Snuka165sick1802018Jimmy Snuka165sick18018
10Hulk Hogan125vaca1702530Hulk Hogan125vaca17030
11Hulk Hogan125sick1802527Hulk Hogan125sick18027
12Hulk Hogan125comp1902018Hulk Hogan125comp19018
13Bob Backlund855sick1803026Bob Backlund855sick18026
14Bob Backlund855vaca1703026Bob Backlund855vaca17026
15Bob Backlund855base hours0101019Bob Backlund855base hours01019
Sheet1
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
I am currently using Office Professional 2019 but I have office 365 as well. Thanks for the tips.
 
Upvote 0
Thanks for that.
How about
Fluff.xlsm
ABCDE
1NAMEUNIQUE ID EmployeeTYPE OF HOURSCode for Hours Hours Worked BETA
2Mike Sharpe240vaca17020
3Mike Sharpe240sick18017
4Mike Sharpe240overtime13014
5Mike Sharpe240Comp19214
6Jimmy Snuka165base hours1015
7Jimmy Snuka165vaca17017
8Jimmy Snuka165sick18018
9Hulk Hogan125vaca17030
10Hulk Hogan125sick18027
11Hulk Hogan125comp19018
12Bob Backlund855sick18026
13Bob Backlund855vaca17026
14Bob Backlund855base hours1019
Sheet2



Fluff.xlsm
ABCDEF
1NAMEUNIQUE ID EmployeeTYPE OF HOURSCode for Hours Hours Worked on Timesheet ALPHAPULL HOURS FROM BETA
2Mike Sharpe240vaca1702520
3Mike Sharpe240sick1802517
4Mike Sharpe240overtime1301014
5Mike Sharpe240Comp1921014
6Jimmy Snuka165base hours103015
7Jimmy Snuka165vaca1702017
8Jimmy Snuka165sick1802018
9Hulk Hogan125vaca1702530
10Hulk Hogan125sick1802527
11Hulk Hogan125comp1902018
12Bob Backlund855sick1803026
13Bob Backlund855vaca1703026
14Bob Backlund855base hours101019
Sheet1
Cell Formulas
RangeFormula
F2:F14F2=INDEX(Sheet2!$E$2:$E$100,MATCH(B2&"|"&D2,Sheet2!$B$2:$B$100&"|"&Sheet2!$D$2:$D$100,0))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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