Use two criteria on one table to find a matching salary on a second table.

iosiflupis

New Member
Joined
Jan 26, 2022
Messages
39
Office Version
  1. 365
Platform
  1. Windows
I have a workbook with two worksheets. on the first sheet, I want to use years of service and category to then derive the salary from the second worksheet.


Workbook Tab 1.png




Workbood Tab 2.png


I believe that this will be a combined formula for lookup and index/match. Unfortunately, this is getting way beyond my abilities.

Thank you
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi, this is do-able, although it's complicated by the fact that your years of service in column F in the first sheet, are not whole years, they include fractions of years.
Can you do something to convert them into whole years ?

Let's assume you can, and you create a new column of data in the first worksheet, let's say in column K, to store the whole years.
Let's assume column K now includes the full year equivalent of column F, in a format that exactly matches the Year labels in row 1 on the second sheet.

Something like this, in J2 on the first sheet, should work . . .
Code:
=OFFSET(Sheet2!A1,MATCH(Sheet1!I2,Sheet2!A2:A10,0),MATCH(Sheet1!K2,Sheet2!B1:U1,0),1,1)
Adapt the cell and sheet references as required.
 
Upvote 0
Solution

Forum statistics

Threads
1,223,887
Messages
6,175,199
Members
452,617
Latest member
Narendra Babu D

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