Amount calculation in progress

McM_

New Member
Joined
Oct 23, 2023
Messages
23
Office Version
  1. 365
Platform
  1. Windows
Hi everyone
I come with a problem that I can't solve. I have to add up the hours worked by the employees every day.
Everyone's working days and the number of hours worked is variable, not being a work regime with a fixed schedule. As a result, I have to total the hours worked for that day, but also how many hours they worked up to that moment.
In column B I have hours worked that day and in column C total hours worked from the beginning to that moment, but I don't know which formula to apply
For example in the attached table:
Employee 1
on day 1 he worked 7 hours (total 7)......on day 2 he worked 6 hours but he also has a total of 13 (7+6) hours until day 2, on day 3 he worked 9 hours, so the total will be 21 (7+6+9) hours
Employee 2
on day 1 he worked 4 hours (total 4), on day 3 he worked 8 hours, with a total of 12 hours (4+8)...
.....
and so on for each employee for a month. We have a number of 135 employees, so I definitely need to optimize the table for these calculations.
Thank you for your help!

IN THIS COLUMN I NEED THE FORMULA
hours workedtotal hours/employeeday
Employee 177day 1
Employee 244day 1
Employee 1613 (7+6)day 2
Employee31010day 2
Employee3818 (10+8)day 3
Employee 2812 (4+8)day 3
Employee 1921(7+6+9)day 3
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Give this a try:

Book1
ABCD
1IN THIS COLUMN I NEED THE FORMULA
2hours workedtotal hours/employeeday
3Employee 177day 1
4Employee 244day 1
5Employee 1613day 2
6Employee31010day 2
7Employee3818day 3
8Employee 2812day 3
9Employee 1922day 3
Sheet1
Cell Formulas
RangeFormula
C3:C9C3=SUMIF($A$3:A3,A3,$B$3:B3)
 
Upvote 0
Solution
So basically you need to keep a register of how many hour your employees have worked each day, and than get the total for each employee?

Would it make sense to do this?

Book1
ABCDEFG
1EmployeeTotalDay 1Day 2Day 3Day 4Day 5
2Employee 13888778
3Employee 23569677
4Employee 33386676
Sheet1
Cell Formulas
RangeFormula
B2:B4B2=SUM(Sheet1!$C2:$G2)
 
Upvote 0
Thank you for help!!!
In particular
dreid 1011,
it's what i needed.

felixstraube
your formula works but it doesn't help what I need
Thank you guys!
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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