Vlookup help

yessir

Board Regular
Joined
Jun 7, 2019
Messages
91
RankJob Assigned toWorker IDJOB1JOB2JOB3
(insert formula here)
1​
4​
3​
1​
5​
1​
10​
3​
6​
6​
2​
11​
1​
2​
1​
3​
12​
2​
1​
9​

Trying to use a Vlookup formula display the number below the job the worker is assigned to in the Rank column. For example in the first row, we see that the worker ID is 4 and they are assigned to Job 1 which is JOB1 in column D. So in A2 the formula would display the number 3. This formula would be carried down throughout column A.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Try

=INDEX(D2:F2,1,B2), copied down

Or if you really want to use VLOOKUP

=VLOOKUP(C2,C:F,B2+1,0)
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,370
Members
449,080
Latest member
Armadillos

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