alm395
New Member
- Joined
- Apr 23, 2018
- Messages
- 39
- Office Version
- 365
- Platform
- Windows
Hi!
I work in a location that is 24/7 and am working on updating our schedule. I would like to be able to add a "Coverage By Hour" table, but am having trouble finding the correct formula.
We have 5 different shifts, where 4 are day shifts starting at 05:45 and ending between 15:00 - 18:15. We also have 1 night shift (18:00 - 06:00). Each shift is color-coded and time off is in purple. I tried a couple of formulas that are similar, but am not sure how else to count the number of employees we have schedule during each hour of the day.
I am on a secure workstation and was able to download the Xl2bb file but couldn't get it to capture the range, so I have included my formulas and also have a screenshot below.
Column X: I manually counted and would like the results to match these.
Column Y: =SUM(--(TIME(5,0,0)>=$B$4:$B$33)*(TIME(5,0,0)<=$C$4:$C$33)) // I updated the times for each column (6, 7, 8, etc...).
Column Z: =SUM(--($W4>=$B$4:$B$33)*($W4<=$C$4:$C$33)) // I also copied down to match the times from column W.
Once I have the formula correct, I will do a heat map on the Coverage By Hour Table to show where we are lacking staff. PLEASE HELP!!!
I work in a location that is 24/7 and am working on updating our schedule. I would like to be able to add a "Coverage By Hour" table, but am having trouble finding the correct formula.
We have 5 different shifts, where 4 are day shifts starting at 05:45 and ending between 15:00 - 18:15. We also have 1 night shift (18:00 - 06:00). Each shift is color-coded and time off is in purple. I tried a couple of formulas that are similar, but am not sure how else to count the number of employees we have schedule during each hour of the day.
I am on a secure workstation and was able to download the Xl2bb file but couldn't get it to capture the range, so I have included my formulas and also have a screenshot below.
Column X: I manually counted and would like the results to match these.
Column Y: =SUM(--(TIME(5,0,0)>=$B$4:$B$33)*(TIME(5,0,0)<=$C$4:$C$33)) // I updated the times for each column (6, 7, 8, etc...).
Column Z: =SUM(--($W4>=$B$4:$B$33)*($W4<=$C$4:$C$33)) // I also copied down to match the times from column W.
Once I have the formula correct, I will do a heat map on the Coverage By Hour Table to show where we are lacking staff. PLEASE HELP!!!