grouping counts by date and time

edestefano

New Member
Joined
Nov 17, 2010
Messages
1
Barry Houdini provided the following which helped divide my data set into 15 min chunks of time and list the number of counts in each time period:

=SUMPRODUCT((FLOOR(MOD(B$1:B$4,1),"0:15")=C1)+0

where B is time of an event in hours:minutes.

This worked well on a small data set using 15 minute time periods. However, my data set is large (90 days) and I want to divide it into 5 hour time periods. I think I'm having problems incorporating the date in the above formula. I tried to make column B include date AND time, but I'm not sure how to define the significance variable for the FLOOR.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,215,064
Messages
6,122,942
Members
449,094
Latest member
teemeren

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