Formula to Subtotal Employee Hours/Rate based on Job Position for Billing Summary

JenMcG

New Member
Joined
Dec 2, 2016
Messages
46
Hello,

I’m looking for help building a formula that will subtotal total hours worked AND subtotal the billing rate based on the employee's position:

Job position is located in column C (range 12 to 5000)
Positions include:
Project Manager
Site Supervisor
General Labour/Demo
Fire/Water Technician
Safety Officer
Administrator

Total hours are in column I (range 12 to 5000)

Subtotal Billing Rate is in column M (range 12 to 5000)

There are multiple entries per day (like a timesheet) that need to be subtotaled by position.

Thank you,
 

Attachments

  • Screen Shot Excel Time Sheet Entry.JPG
    Screen Shot Excel Time Sheet Entry.JPG
    132.4 KB · Views: 16
The last column did not need to be updated because it was dependent on one of these two. And, since that is fixed, it is not a concern. Update these in Row 13, then copy down.

Mr Excel Questions2.xlsm
KL
131$30.00
Labour Hours Entry
Cell Formulas
RangeFormula
K13K13=IF(J13="",0, VLOOKUP(J13,$O$3:$P$4,2,FALSE) )
L13L13=IF(C13="",0, VLOOKUP(C13,$Q$3:$R$12,2,FALSE) )
 
Upvote 0

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
If you think one of the posts has given you an answer, please mark it as the answer.

Best wishes!
 
Upvote 0
The last column did not need to be updated because it was dependent on one of these two. And, since that is fixed, it is not a concern. Update these in Row 13, then copy down.

Mr Excel Questions2.xlsm
KL
131$30.00
Labour Hours Entry
Cell Formulas
RangeFormula
K13K13=IF(J13="",0, VLOOKUP(J13,$O$3:$P$4,2,FALSE) )
L13L13=IF(C13="",0, VLOOKUP(C13,$Q$3:$R$12,2,FALSE) )
Really appreciate your help today!
 
Upvote 0
My pleasure. Please remember to mark the post that answered your question as the answer.

Best wishes!
 
Upvote 0
An alternative is with Power Query

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Grouped Rows" = Table.Group(Source, {"Role"}, {{"Hours", each List.Sum([Total Hours]), type number}, {"SubRate", each List.Sum([Rate]), type number}})
in
    #"Grouped Rows"
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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