Forumla to find the correct houlry rate for staff

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,194
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,
I really hope you can help

I have two sheet
Caphours
Employees

in Caphours column "i" is Week and J is Employees name. L is where i want the formula to find the employees hourly rate.

in Employees
Column C is Start date
D End Date,
G Employees Name
and L Hourly rate

so heres what i want,
Caphours holds rows of data about each employee, I want to find the correct houly rate for the week in "i" for that employee

So If i was doing this in english it would go something lkike this

for each row, take the employees name in column J and the week in i
find the first row this employees name apears on in sheet "Employees" Column G, Look at the Start and end dates and if the weeks date is between thise dates then return hourly rate as L, if not find the next time his name apears and do the same check, if none are correct take the last time his name apears as the correct answer.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
You won't be able to do this with a formula, I think. But a macro that runs automatically could do this no problem. Let me know if you want to go that route
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,582
Members
449,089
Latest member
Motoracer88

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