Calculating staff on the clock for every 30 minutes

saconroy66

New Member
Joined
Feb 27, 2018
Messages
3
In my schedule I show the start and end times for my employees (see below). On a separate sheet I need to know how many people are working for every 30 minutes. For example, from 9am to 9:30am I can manually count that there is only one person working. From 9:30am to10am there will be two people working. And so on for the remainder of the day. With a large crew it takes too long to manually count this. Is there a formula that will calculate this for me?


[TABLE="width: 206"]
<tbody>[TR]
[TD]Ashton
[/TD]
[TD]10:00am
[/TD]
[TD]2:30pm
[/TD]
[/TR]
[TR]
[TD]Brenna
[/TD]
[TD]5:30pm
[/TD]
[TD]9:30pm
[/TD]
[/TR]
[TR]
[TD]Caitlin
[/TD]
[TD]5:00pm
[/TD]
[TD]9:30pm
[/TD]
[/TR]
[TR]
[TD]Cassandra
[/TD]
[TD]9:00am
[/TD]
[TD]5:00pm
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
saconroy66,
How are you going to define the time range that you need information on? the calculation would be to take the start time of each employee, one by one, and compare it to the beginning time of your target range. If it matches or is after the beginning of your target range, then compare the employees end time to end time of you target range if it is earlier than or equal to your target end time then add 1 to you cell where you want the count to appear. So you will need a two part if then Statement, with the first part comparing the start times and the second part comparing the end times, put in a loop that checks all the employees ( a Lastrow function can help here) and you should get what you are looking for.

Hope that helps,
Computerman
 
Upvote 0
Okay I think I understand the concept, but I have no idea what that formula looks like. Can you help me?

Thanks!
 
Upvote 0
Hi again, I am hoping there is someone out there that can help me with this formula. I understand what needs to be done, but I do not know what the formula is. Can anyone help me?
 
Upvote 0
1642021148175.png
 
Upvote 0
Greetings,

I uploaded a pic...I am trying to build it...to be able to enter the start and stop time of the schedule, enter the days off, and the number of each schedule so that it will show the staff by 30 minute intervals. Right now, i have it counting the number of staff based on the start and stop time only using SumProduct....can someone see if they can figure out how to incorporate the "Team Size" and the Days Off?

1642021341952.png
 
Upvote 0

Forum statistics

Threads
1,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

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