COUNT HOW MANY PEOPLE WORKS BETWEEN TIME CELLS

othmannl

New Member
Joined
Mar 22, 2021
Messages
2
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi,

I have a schedule of employees, that works in shifts.

But i want to count how many people are working
between 07:00 and 12:00
and between 12:00 and 16:00
and between 16:00 and 20:00

How can i do that, the begin time is in a cell and the end time is in the cell next to it. see down picture for how it looks like

Thanks in advance

1616400255177.png
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
how about countif?

Book8
ABC
1Nameinout
2a7:0012:00
3b7:0011:59
4c12:0015:00
5d12:0016:00
6e16:0019:00
7f16:0020:01
8
907:00-12:0012:00-16:0016:00-20:00
10221
Sheet1
Cell Formulas
RangeFormula
A10A10=COUNTIFS(B2:B7,"7:00",C2:C7,"<=12:00")
B10B10=COUNTIFS(B2:B7,"12:00",C2:C7,"<=16:00")
C10C10=COUNTIFS(B2:B7,"16:00",C2:C7,"<=20:00")
 
Upvote 0
how about countif?

Book8
ABC
1Nameinout
2a7:0012:00
3b7:0011:59
4c12:0015:00
5d12:0016:00
6e16:0019:00
7f16:0020:01
8
907:00-12:0012:00-16:0016:00-20:00
10221
Sheet1
Cell Formulas
RangeFormula
A10A10=COUNTIFS(B2:B7,"7:00",C2:C7,"<=12:00")
B10B10=COUNTIFS(B2:B7,"12:00",C2:C7,"<=16:00")
C10C10=COUNTIFS(B2:B7,"16:00",C2:C7,"<=20:00")
Thanks, but what if soemone works from 09:00 - 18:00, that means that he is available between 7:00 and 12:00 \\\ and also between 12:00 and 16:00
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,602
Members
449,089
Latest member
Motoracer88

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