I have an interesting one which I am really struggling to resolve and feel this should be possible using SUMIFS somehow!
I have the following (as per the image):
I have a number of tasks to complete on different days. Each task has a separate row and each task has a specific duration.
On "Day 1" I enter the duration in column C for my first task which automatically calculates column D's answer (simply B+C=D).
- Task 1: 09:00 - 09:30
On "Day 2" I have three tasks to complete:
- Task 1: 09:00 - 10:00
- Task 2: 10:00 - 12:00
- Task 3: 12:00 - 22:00
What I would like to do in the second table (F-H) is workout the total hours in-hours (between 09:00 and 17:00) and the total time out-of-hours (hours outside of 09:00-17:00) as per columns G and H.
Formula for column F extracts all unique day numbers:
=IFERROR("" & INDEX($A$3:$A$12, MATCH(0,COUNTIF($F$1:F1, $A$3:$A$12), 0)),"")