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

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
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
2Division NameCost Centre NamePay GrdRole Type
3ACUTE CAREMedicine MedicalSC2MED-REG
4ACUTE CAREMedicine MedicalDS2MED-INTERN
5
6
7
8
9Lookup Data (~400 rows)
10Division NameCost Centre NamePay Grd1Pay Grd2Pay Grd3Pay Grd4Pay Grd5Role Type
11ACUTE CAREMedicine MedicalSC3SCM1SDM1SSC5SC2MED-REG
12ACUTE CAREMedicine MedicalDS3DS2DDC1DS1DSCMED-INTERN

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
ADP

Array Formulas
CellFormula
D3{=IFERROR(INDEX($H$11:$H$12,MATCH(A3&"|"&B3&"|"&C3,$A$11:$A$12&"|"&$B$11:$B$12&"|"&$C$11:$C$12,0)),"")}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
Much thanks Fluff.

This works great.

Cheers

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

Forum statistics

Threads
1,214,817
Messages
6,121,720
Members
449,050
Latest member
MiguekHeka

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