array lookup calculation

uwfenske

New Member
Joined
Feb 15, 2010
Messages
14
I am having troubles getting a payroll calculation formula set up. We have annual increases for employees (tenure) and I need to factor in different pay rates for different job types.

Basic layout of Sheet 1
A
B
C
D
E
F
1
Employee
Hours
Tenure
Type
Income
2
AAA
3
1-2
tech
3
BBB
3
New
tech
4
CCC
3.5
3-4
acct

<tbody>
</tbody>

Sheet 2 is the pay rate grid
A
B
C
D
E
F
1
New
1-2
2-3
3-4
2
tech
10
10.25
10.50
10.75
3
acct
11
11.25
11.50
10.75
4
other
12
12.25
12.50
12.75

<tbody>
</tbody>

What I am trying to get is a formula that will find the pay rate when it matches the tenure and the job type, then multiply that rate times the number of hours.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
If the job types and tenures are unique, try

=B2*SUMPRODUCT((C2=Sheet2!$B$1:$E$1)*(D2=Sheet2!$A$2:$A$4),Sheet2!$B$2:$E$4)
 
Upvote 0

Forum statistics

Threads
1,215,172
Messages
6,123,443
Members
449,100
Latest member
sktz

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