EricGoBills
New Member
- Joined
- Jun 19, 2018
- Messages
- 2
Hello,
First post on here but have used this site countless times as a reference.
I am creating a heat chart for staffing purposes to show how many people are on shift for a specific day/time.
The first sheet has schedule info (Name, Start Time, End Time, and 1/0 for each day of the week they work)
<tbody>
</tbody>
The second sheet is where I am creating my heat chart. Using the following formula it will calculate for everyone except the employees who work the overnight. (end shift < start shift)
(formula from cell B3)
=SUMIFS(Schedule!$B:$B,Schedule!$B:$B,1,Schedule!$I:$I,"<="&B$2,Schedule!$J:$J,">"&B$2)
<tbody>
</tbody>
Looking for any suggestions on how to incorporate the overnight shifts into this formula. ("Jack" in the example) I have played with IF statements checking if Start Time > End Time, but can't seem to get it to work.
First post on here but have used this site countless times as a reference.
I am creating a heat chart for staffing purposes to show how many people are on shift for a specific day/time.
The first sheet has schedule info (Name, Start Time, End Time, and 1/0 for each day of the week they work)
A | B | C | D | E | F | G | H | I | J | K | L | |
1 | Name | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Start EST | End EST | Duration | Shift |
2 | John | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 6:00 | 14:30 | 8:30 | A |
3 | Jane | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 13:00 | 22:00 | 9:00 | B |
4 | Jack | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 22:00 | 7:00 | 9:00 | C |
<tbody>
</tbody>
The second sheet is where I am creating my heat chart. Using the following formula it will calculate for everyone except the employees who work the overnight. (end shift < start shift)
(formula from cell B3)
=SUMIFS(Schedule!$B:$B,Schedule!$B:$B,1,Schedule!$I:$I,"<="&B$2,Schedule!$J:$J,">"&B$2)
A | B | C | D | E | F | G | H | I | J | K | L | |
1 | ||||||||||||
2 | 12:00:00 AM | 12:30:00 AM | 1:00:00 AM | 1:30:00 AM | 2:00:00 AM | 2:30:00 AM | 3:00:00 AM | 3:30:00 AM | 4:00:00 AM | 4:30:00 AM | 5:00:00 AM | |
3 | Sunday | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
4 | Monday | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
5 | Tuesday | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
6 | Wednesday | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7 | Thursday | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
8 | Friday | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
9 | Saturday | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
<tbody>
</tbody>
Looking for any suggestions on how to incorporate the overnight shifts into this formula. ("Jack" in the example) I have played with IF statements checking if Start Time > End Time, but can't seem to get it to work.