break down hours between two times.

daveyb60

New Member
Joined
May 15, 2020
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I have a spreadsheet with around 50 peoples work hours, two of the columns are time in and time out, the workers start at different times, some start at 02:00 till 10:00 some start 02:00 till 06:00 and some start 04:00 till 10:00 ect ect, i'm having trouble finding a formula to find the hours between two times for example all the hours between 02:00 and 03:00 buy using the two columns of time in and out and was wondering if anyone could help?
thankyou in advance

Dave
 
Sorry i posted the wrong formula!

=SUMIFS($D$2:$D$8,$B$2:$B$8,">="&F12,$B$2:$B$8,"<="&G12)

D=Hours
B=Start Time
F=02:00:00
G=03:00:00
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
2.PNG

i have added a few more people to the list to get a better idea of what i'm trying to achieve with the table, so i have 11 people working and need to know how many man hours i have between the 1 hour slots, so the formula i put in counts the whole number, however George only starts at 2:45 so he only works 15 mins between 2 and 3 but its counted as an hour if you see what i mean, this is the same with Emma and the both Sams, Joe and Ant start at 02:30, so the 9 hours by the 02:00 - 03:00 so should be more like 5 hours, and thats the formula i need. not sure if thats any clearer :-s
 
Upvote 0

Forum statistics

Threads
1,214,622
Messages
6,120,572
Members
448,972
Latest member
Shantanu2024

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