Breaking down the labor cost into per minute under the hourly heady

hpo2509

New Member
Joined
Nov 17, 2022
Messages
5
Office Version
  1. 2019
Platform
  1. Windows
Hi Everyone,

I have these data that shows the start of time and end of time. We need to know the actual time we charge on a per minute on that certain hour/time.

Job titleLocationClock in dateClock in timeClock out dateClock out timeRegular hoursHourly rate
ManagerTOR
9/1/2022​
12:00:10​
9/1/2022​
19:10:29​
7.17​
9.9958​
Bar StaffTOR
9/1/2022​
18:56:30​
9/2/2022​
0:36:03​
5.67​
8.1957​

Output should be.
Full hourly rate for the services rendered for the full hour and prorated per minute on the times not full hour is rendered e.g
@18:00 time period a new staff came in and worked for 56minutes this will be converted to minute rate then added to the full hour rate of the existing staff.
@19:00 time period the first staff left but clocked out with 10 minutes so this will be added to the full hour of the staff that came in @18:00

Table should be this

Date/Time
11:00:00​
12:00:00​
13:00:00​
14:00:00​
15:00:00​
16:00:00​
17:00:00​
18:00:00​
19:00:00​
9/1/2022​
9.99589.99589.99589.99589.99589.995817.645829.86173

Any leads to to this I had the sumifs formula but was able to get only the per hour charges and can't get the prorated per minute charge.

Thanks in advance
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
I put my answer in row 7. Below it, I have the extra calculations spread out a bit to be more readable.

Cell Formulas
RangeFormula
G2:G3G2=(E2+F2)-(C2+D2)
D6:M6D6=C6+1/24
C7:M7C7=(MAX(0,MIN($A7+C$6+1/24,$E$2+$F$2)-MAX($A7+C$6,$C$2+$D$2))*24*$H$2)+(MAX(0,MIN($A7+C$6+1/24,$E$3+$F$3)-MAX($A7+C$6,$C$3+$D$3))*24*$H$3)
C9:M9C9=MAX($A7+C$6,$C$2+$D$2)
C10:M10C10=MIN($A7+C$6+1/24,$E$2+$F$2)
C11:M11,C15:M15C11=MAX(0,C10-C9)
C12,C16C12=(C11*24*$H$2)
D12:M12,D16:M16D12=D11*24*$H$2
C13:M13C13=MAX($A7+C$6,$C$3+$D$3)
C14:M14C14=MIN($A7+C$6+1/24,$E$3+$F$3)
 
Upvote 0
Solution
Awesome James, you even got up to the seconds. Quick one again if there will be additional lines let's say we'll be hiring new staff and it'll be more lines. Is it possible to have it for the whole month? Was thinking of a dynamic formula if there'll be more lines. But for now I'll work on the formula you gave as we have 2 employees for now.
I put my answer in row 7. Below it, I have the extra calculations spread out a bit to be more readable.
 
Upvote 0
This is one where 365 would help. You'd use FILTER to pull only the data you are interested - a particular day and location - from your whole data set, then work on that.

One of the problems, array formulas get broken by MAX or MIN - so they are harder to work with.

But at the end of the day, this is a thing that could be done - the formulas just get a bit unmanagible to look at.
 
Upvote 0

Forum statistics

Threads
1,215,580
Messages
6,125,654
Members
449,245
Latest member
PatrickL

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