Sum of hours between a range of dates

jennyd88

New Member
Joined
Nov 21, 2017
Messages
2
Don't know if this is possible but thought someone out there may have some ideas....
Making a holiday work rota and trying to get the sum of the hours taken between two dates
This is basically how it looks:
Sheet 1
DateRota hours
10/11/201710
11/11/20177
12/11/201710
13/11/20174
14/11/20176

<tbody>
</tbody>

Sheet 2
Holiday start dateHoliday end dateTotal hours holiday
10/11/201713/11/2017

<tbody>
</tbody>

Total hours holiday would be the sum of column B between those 2 dates on sheet 1.

Anyone any ideas
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Excel 2010
ABC
1Holiday start dateHoliday end dateTotal hours holiday
210/11/201713/11/201731

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
C2=SUMPRODUCT((Sheet1!$A$2:$A$6>=Sheet2!A2)*(Sheet1!$A$2:$A$6<=Sheet2!B2)*Sheet1!$B$2:$B$6)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,216,753
Messages
6,132,514
Members
449,731
Latest member
dasda34

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