Countifs or Sumifs

Bound4Glory

New Member
Joined
Jun 21, 2020
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Hello,
I am wanting to count the number of employees that were on the clock between two times. I'm not sure how to go about it. For example:

EMPLOYEE NAMESTART TIMEEND TIME
BOB3:007:00
BILLY5:009:00
CRAIG4:008:00
DAN5:009:00


I would want to know the formula to return this below:
TIME
NUMBER OF EMPLOYEES ON CLOCK BETWEEN THESE TIMES
03:00 - 04:001
04:00 - 05:002
05:00 - 06:004
06:00 - 07:004
07:00 - 08:003
08:00 - 09:002

Thank you!
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Firstly you would need to separate three times in the second table into 2 columns (start and end) having both in the same cell as a time range means that a formula can not read it properly as a time. Whilst there are ways to work around it, it would be better to get into the habit of using better methods sooner rather than later.

Assuming top table on columns A:C and bottom table in E:G (with 2 columns for times), the formula would be
Excel Formula:
=COUNTIFS(B:B,">="&E1,C:C,"<"&F1)
 
Upvote 0
Solution

Forum statistics

Threads
1,215,219
Messages
6,123,684
Members
449,116
Latest member
HypnoFant

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