Counting how often a time appears

SilentDisco

New Member
Joined
Dec 4, 2018
Messages
4
Hi,

I am hoping someone out there will be able to point me in the right direction as I have been searching for ages and can not seem to get anything to work that is not really long winded.

A B C D E
StartLunch startLunch FinishFinish
Staff A09:3013:3014:3018:00
Staff B11:0015:0016:0019:00
Staff C09:0013:0014:0017:00
Staff D09:3013:3014:3018:00
Staff E09:0013:0014:0017:00
Staff F10:0014:0015:0019:00
Staff G09:0013:0014:0017:00

<tbody>
</tbody>

I have a table that shows a staff members shift pattern on any given day (this goes on for around 100 rows)

I need to count how many people are working at any given 15 minute interval so have to remove the hour they have for lunch

09:002
09:152
09:304
09:454
10:005
10:155
10:305
10:455
11:006
11:15
11:30
11:45
12:00
12:15

<tbody>
</tbody>


I hope I have explained this well enough, any help will be greatly appreciated.

Thanks
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi & welcome to MrExcel.
How about
=SUMPRODUCT(($B$2:$B$8<=A12)*($C$2:$C$8>=A12)+($D$2:$D$8<=A12)*($E$2:$E$8>=A12))
or
=COUNTIFS($B$2:$B$8,"<="&A12,$C$2:$C$8,">="&A12)+COUNTIFS($D$2:$D$8,"<="&A12,$E$2:$E$8,">="&A12)
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

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