Match data from 2 work sheets and return the result to the first worksheet

elanda

New Member
Joined
Mar 27, 2012
Messages
15
Hello,

What I am looking for is vlookup type function that will look up the first 3 columns in data worksheet 1 and find it in the data lookup table and find the pay grade and if it is there return the Role Type to Data Sheet 1 Role Type.

Data Worksheet 1 (8k rows)
Division Name Cost Centre Name Pay Grd Role Type
ACUTE CARE Medicine Medical SC Return Role Type from Lookup Data
ACUTE CARE Medicine Medical DS1 Return Role Type from Lookup Data




Lookup Data (~400 rows)
Division Name Cost Centre Name Pay Grd1 Pay Grd2 Pay Grd3 Pay Grd4 Role Type
ACUTE CARE Medicine Medical SC2 SCM1 SDM1 SSC5 SC MED-REG
ACUTE CARE Medicine Medical DS2 DCM3 DDC1 DS1 DSC MED-INTERN

Any help appreciated I am sure it needs an index or an array. But I think it is beyond my comprehension.

Much thanks in advance

AE
 
Last edited:

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
How about


Excel 2013/2016
ABCDEFGH
2Division NameCost Centre NamePay GrdRole Type
3ACUTE CAREMedicine MedicalSC2MED-REG
4ACUTE CAREMedicine MedicalDS2MED-INTERN
5
6
7
8
9Lookup Data (~400 rows)
10Division NameCost CentreNamePay Grd1Pay Grd2Pay Grd3Pay Grd4Role Type
11ACUTE CAREMedicine MedicalSC2SCM1SDM1SSC5SCMED-REG
12ACUTE CAREMedicine MedicalDS2DCM3DDC1DS1DSCMED-INTERN
ADP
Cell Formulas
RangeFormula
D3{=IFERROR(INDEX($H$11:$H$12,MATCH(A3&"|"&B3&"|"&C3,$A$11:$A$12&"|"&$B$11:$B$12&"|"&$C$11:$C$12,0)),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
How about

Excel 2013/2016
ABCDEFGH
Division NameCost Centre NamePay GrdRole Type
ACUTE CAREMedicine MedicalSC2MED-REG
ACUTE CAREMedicine MedicalDS2MED-INTERN
Lookup Data (~400 rows)
Division NameCost Centre NamePay Grd1Pay Grd2Pay Grd3Pay Grd4Pay Grd5Role Type
ACUTE CAREMedicine MedicalSC3SCM1SDM1SSC5SC2MED-REG
ACUTE CAREMedicine MedicalDS3DS2DDC1DS1DSCMED-INTERN

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]2[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]3[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]4[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]7[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]8[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]9[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]10[/TD]

[TD="align: center"]11[/TD]

[TD="align: center"]12[/TD]

</tbody>
ADP

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Array Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]D3[/TH]
[TD="align: left"]{=IFERROR(INDEX($H$11:$H$12,MATCH(A3&"|"&B3&"|"&C3,$A$11:$A$12&"|"&$B$11:$B$12&"|"&$C$11:$C$12,0)),"")}[/TD]
[/TR]
</tbody>[/TABLE]
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself[/TD]
[/TR]
</tbody>[/TABLE]
Much thanks Fluff.

This works great.

Cheers

AE
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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