Trying to convert shift time to staffing numbers

CJWFM

New Member
Joined
Dec 6, 2019
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I am trying to take the schedule's below and convert the to show how many agents should be working in each hour, I can't seem to debug the formula to calculate correctly.

1575663967272.png
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Is this what you want

Book1
ABCDEFGHIJKLMNOPQ
208:00-17:0008:00-17:0008:00-17:0008:00-17:0008:00-17:00offoff7:000000000
308:00-17:0008:00-17:0008:00-17:0008:00-17:0008:00-17:00offoff8:00161616161600
408:00-17:0008:00-17:0008:00-17:0008:00-17:0008:00-17:00offoff9:00161616161600
508:00-17:0008:00-17:0008:00-17:0008:00-17:0008:00-17:00offoff10:00161616161600
608:00-17:0008:00-17:0008:00-17:0008:00-17:0008:00-17:00offoff11:00161616161600
708:00-17:0008:00-17:0008:00-17:0008:00-17:0008:00-17:00offoff12:00161616161600
808:00-17:0008:00-17:0008:00-17:0008:00-17:0008:00-17:00offoff13:00161616161600
908:00-17:0008:00-17:0008:00-17:0008:00-17:0008:00-17:00offoff14:00161616161600
1008:00-17:0008:00-17:0008:00-17:0008:00-17:0008:00-17:00offoff15:00161616161600
1108:00-17:0008:00-17:0008:00-17:0008:00-17:0008:00-17:00offoff16:00161616161600
1208:00-17:0008:00-17:0008:00-17:0008:00-17:0008:00-17:00offoff17:00161616161600
1308:00-17:0008:00-17:0008:00-17:0008:00-17:0008:00-17:00offoff18:000000000
1408:00-17:0008:00-17:0008:00-17:0008:00-17:0008:00-17:00offoff19:000000000
1508:00-17:0008:00-17:0008:00-17:0008:00-17:0008:00-17:00offoff20:000000000
1608:00-17:0008:00-17:0008:00-17:0008:00-17:0008:00-17:00offoff21:000000000
1708:00-17:0008:00-17:0008:00-17:0008:00-17:0008:00-17:00offoff22:000000000
1823:000000000
Data
Cell Formulas
RangeFormula
K2:Q18K2=IFERROR(SUMPRODUCT((--LEFT(A$2:A$17,5)<=$J2)*(--RIGHT(A$2:A$17,5)>=$J2)),0)
 
Upvote 0
Yes this is what I was looking for, also trying to account for lunches but not 100% sure if it is best to break the schedules into 2 halves or use another approach.
 
Upvote 0

Forum statistics

Threads
1,214,386
Messages
6,119,217
Members
448,876
Latest member
Solitario

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