Hours Calculations

vmjan02

Well-known Member
Joined
Aug 15, 2012
Messages
1,059
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
I have a shift roster like
Shift Flag​
ABCDE
Shift Start Time​
8:00:0010:00:0012:00:0016:00:000:00:00
Shift End Time​
16:00:0018:00:0020:00:000:00:008:00:00

and the roster format as
DateDayWeek DayEmp 1Emp 2Emp 3Emp 4Emp 5Emp 6
19-NovSundayWK-DAYADCBDE
20-NovSundayWK-DAYWODCBDE
21-NovSundayWK-DAYWODCBDE
22-NovSundayWK-DAYEWOWOADWO

with respect to date how can we get the actual emp counts hourly. hourly will be 0 to 23.
for eg. 8am count will be 1 shift A
10am count will be 2 shift (A&B)
I am not able to fig out. any help

Result
HoursAgent Count
0Count of agent here
1
2
3
4
5
6
7
8
9
10
11
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
See if the information provided by the late Chip Pearson can help. It appears his site has also passed from the public domain, but is still available in the Archive: Dates And Times In Excel

Ron
 
Upvote 0
The way you want your results is going to be formula unfriendly. See if this helps. Note that the 'Shift End Time' for Shift D needs to be 24:00:00, not 00:00:00 (although it is still formatted to appear as 00:00:00)
Book1
ABCDEFGHIJKLMNOPQRSTUVWXY
1Shift FlagABCDE
2Shift Start Time8:00:0010:00:0012:00:0016:00:000:00:00
3Shift End Time16:00:0018:00:0020:00:000:00:008:00:00
4
5DateDayWeek DayEmp 1Emp 2Emp 3Emp 4Emp 5Emp 6
619/11/2019SundayWK-DAYADCBDE
720/11/2019SundayWK-DAYWODCBDE
821/11/2019SundayWK-DAYWODCBDE
922/11/2019SundayWK-DAYEWOWOADWO
10
1101234567891011121314151617181920212223
1219/11/2019111111111122333344332222
1320/11/2019111111110011222244332222
1421/11/2019111111110011222244332222
1522/11/2019111111111111111111111111
Sheet11
Cell Formulas
RangeFormula
B12:Y15B12=SUMPRODUCT(($B$2:$F$2<=(B$11/24))*($B$3:$F$3>(B$11/24))*COUNTIF($D6:$I6,$B$1:$F$1))
 
Upvote 0
See if the information provided by the late Chip Pearson can help. It appears his site has also passed from the public domain, but is still available in the Archive
Just for info it is back up now ?
 
Upvote 0
(y) And I should have preceded with "Greatly missed." Am really glad people stood up to work with his family to keep the site up.
 
Upvote 0

Forum statistics

Threads
1,214,960
Messages
6,122,479
Members
449,088
Latest member
Melvetica

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