Need help with Lookup formula

Ed Acosta

Board Regular
Joined
Feb 18, 2002
Messages
54
Ok I have a Data Entry spreadsheet setup where the user selects the associates name from a drop dwn list. The associate number is automatically entered based on the associate name (simple Vlookup). They then enter the associate Job code and hrs worked in the hrs column.

Associate Associate # Job Code Training Code Hrs Worked
Becky 560 2207 8


Now the tricky part (for me anyway), I have another spreadsheet for associates in training. COL A list associate name, COL B list Associate number, COl C list the job code they are training in, and COL D list the training code.
EXample

Associate Associate # Job Code Training Code
Becky 560 2206 F
Becky 560 2207 J

What I am looking to do is when the Associate is entered in the data entry spreadsheet along with the job code, look in the training spreadsheet and see if the associate is in training for that code, if yes return the training code from the training spreadsheet to the data entry spreadsheet. :rolleyes:
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi Ed:

Let us say this is your first spreadsheet ...
y040207h1a.xls
ABCDE
1AssociateAssociate#JobCodeTrainingCodeHrsWorked
2Becky5602207J8
Sheet1


and this is your second spreadsheet ...
y040207h2a.xls
ABCD
1AssociateAssociate#JobCodeTrainingCode
2Becky5602206F
3Becky5602207J
Sheet1


The formula in cell D2 of your first spreadsheet is ...

=INDEX([y040207h2a.xls]Sheet1!$A$2:$D$3,MATCH(A2&C2,[y040207h2a.xls]Sheet1!$A$2:$A$3&[y040207h2a.xls]Sheet1!$C$2:$C$3,0),4)

this is an array formula and is to be entered with CTRL+SHIFT+ENTER rather than with just ENTER.
 
Upvote 0

Forum statistics

Threads
1,206,920
Messages
6,075,573
Members
446,147
Latest member
homedecortips

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