Count entry by time

admvlad

New Member
Joined
Apr 29, 2024
Messages
7
Office Version
  1. 2021
Platform
  1. Windows
I have time date in a column on an excel sheet in this format:

17:39:00

17:18:00

16:49:00

14:54:00

14:11:00

12:15:00

12:07:00

23:00:00

17:09:00

17:01:00

8:54:00

8:21:00

6:07:00

0:06:00

19:23:00

13:19:00

12:55:00

4:05:00

23:10:00

20:39:00

20:17:00​

I need to know how many instances occur by time block. The blocks are 0000-0400, 0400-1200, 1200-2000 and 2000-0000. Can a MOD formula be used?
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hello, if there is only time in the column would this not work?

Excel Formula:
=COUNTIFS($A$2:$A$22,">="&TIME(0,0,0),$A$2:$A$22,"<="&TIME(3,59,59))

and so on for other intevals (should not the intervals be disjunct?)
 
Upvote 0
How about this?

0000-0400=COUNTIFS(D:D,">=00:00:00",D:D,"<=04:00:00")
0400-1200=COUNTIFS(D:D,">=04:00:01",D:D,"<=12:00:00")
1200-2000=COUNTIFS(D:D,">=12:00:01",D:D,"<=20:00:00")
2000-0000=COUNTIFS(D:D,">=20:00:01",D:D,"<=24:00:00")
 
Upvote 0
Solution

Forum statistics

Threads
1,223,883
Messages
6,175,167
Members
452,615
Latest member
bogeys2birdies

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