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

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.
Cannot manipulate data in a picture. Please reload the file data using XL2BB. See my signature for instructions.
 
Upvote 0
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,
Cannot manipulate data in a picture. Please reload the file data using XL2BB. See my signature for instructions.
Hello Alansidman,

Unfortuatnly I do not have that addin and can't add it in myself as its a work computer that is protected.
 
Upvote 0
Then perhaps you can upload a sample to a location like Box.Net or Dropbox.com. Then provide link. Still need to be able to manipulate data without having to recreate your sample. Help us to help you.
 
Upvote 0
I needed to delete all the calculations under the last record. But, does this work for you? you can copy the last row's formulas down as you add records

NEW Large Loss T&M Billing Summary.xlsx
ABCDEFGHIJKLMN
1Start DateEnd DatePositionSubtotal HoursSubtotal Billing Rate
2Job NumberE-23-1234Billing Period############Project Manager3.00240.00
3Business NameSite Supervisor16.00140.00
4Loss LocationGeneral Labour/Demo0.000.00
5City / Province / Postal CodeFire/Water Technician0.000.00
6Claim #Safety Officer0.000.00
7Adjuster NameAdministrator7.0060.00
8Examiner Name
9
10
11
12Line #Employee NameRoleDate Worked (MM/DD/YY)Job NumberJob CodeStart TimeEnd TimeTotal HoursRT/OTRT/OT Cal (Helper Column)RateSubtotal
134Sam SmithAdministrator6-Feb-23E-23-12348:30 AM12:00 PM3.50RT1$ 30.00$ 105.00
147Sam SmithAdministrator5-Feb-23E-23-12348:30 AM12:00 PM3.50RT1$ 30.00$ 105.00
151Jen McGinnisProject Manager6-Feb-23E-23-12341:30 PM2:30 PM1.00RT1$ 80.00$ 80.00
163Jen McGinnisProject Manager6-Feb-23E-23-12343:30 PM4:30 PM1.00RT1$ 80.00$ 80.00
176Jen McGinnisProject Manager5-Feb-23E-23-12341:30 PM2:30 PM1.00RT1$ 80.00$ 80.00
182Travis McGinnisSite Supervisor6-Feb-23E-23-12348:00 AM4:00 PM8.00RT1$ 70.00$ 560.00
195Travis McGinnisSite Supervisor5-Feb-23E-23-12348:00 AM4:00 PM8.00RT1$ 70.00$ 560.00
208E-23-12340.00
Labour Hours Entry
Cell Formulas
RangeFormula
I2:I7I2=SUMPRODUCT((--($H2=$C$13:$C$5000))*($I$13:$I$5000))
J2:J7J2=SUMPRODUCT((--($H2=$C$13:$C$5000))*($L$13:$L$5000))
K13:K19K13=VLOOKUP(J13,$O$3:$P$4,2,FALSE)
L13:L19L13=VLOOKUP(C13,$Q$3:$R$12,2,FALSE)
M13:M19M13=(I13*K13)*L13
E13:E20E13=$C$2
I13:I20I13=(H13-G13)*24
Cells with Data Validation
CellAllowCriteria
J13:J20List=$O$3:$O$4
C13:C20List=$Q$3:$Q$12
 
Upvote 0
I needed to delete all the calculations under the last record. But, does this work for you? you can copy the last row's formulas down as you add records

NEW Large Loss T&M Billing Summary.xlsx
ABCDEFGHIJKLMN
1Start DateEnd DatePositionSubtotal HoursSubtotal Billing Rate
2Job NumberE-23-1234Billing Period############Project Manager3.00240.00
3Business NameSite Supervisor16.00140.00
4Loss LocationGeneral Labour/Demo0.000.00
5City / Province / Postal CodeFire/Water Technician0.000.00
6Claim #Safety Officer0.000.00
7Adjuster NameAdministrator7.0060.00
8Examiner Name
9
10
11
12Line #Employee NameRoleDate Worked (MM/DD/YY)Job NumberJob CodeStart TimeEnd TimeTotal HoursRT/OTRT/OT Cal (Helper Column)RateSubtotal
134Sam SmithAdministrator6-Feb-23E-23-12348:30 AM12:00 PM3.50RT1$ 30.00$ 105.00
147Sam SmithAdministrator5-Feb-23E-23-12348:30 AM12:00 PM3.50RT1$ 30.00$ 105.00
151Jen McGinnisProject Manager6-Feb-23E-23-12341:30 PM2:30 PM1.00RT1$ 80.00$ 80.00
163Jen McGinnisProject Manager6-Feb-23E-23-12343:30 PM4:30 PM1.00RT1$ 80.00$ 80.00
176Jen McGinnisProject Manager5-Feb-23E-23-12341:30 PM2:30 PM1.00RT1$ 80.00$ 80.00
182Travis McGinnisSite Supervisor6-Feb-23E-23-12348:00 AM4:00 PM8.00RT1$ 70.00$ 560.00
195Travis McGinnisSite Supervisor5-Feb-23E-23-12348:00 AM4:00 PM8.00RT1$ 70.00$ 560.00
208E-23-12340.00
Labour Hours Entry
Cell Formulas
RangeFormula
I2:I7I2=SUMPRODUCT((--($H2=$C$13:$C$5000))*($I$13:$I$5000))
J2:J7J2=SUMPRODUCT((--($H2=$C$13:$C$5000))*($L$13:$L$5000))
K13:K19K13=VLOOKUP(J13,$O$3:$P$4,2,FALSE)
L13:L19L13=VLOOKUP(C13,$Q$3:$R$12,2,FALSE)
M13:M19M13=(I13*K13)*L13
E13:E20E13=$C$2
I13:I20I13=(H13-G13)*24
Cells with Data Validation
CellAllowCriteria
J13:J20List=$O$3:$O$4
C13:C20List=$Q$3:$Q$12
Amazing- thank you!
 
Upvote 0
Yes, I'll post updated formulas in a minute.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,157
Members
453,021
Latest member
Justyna P

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