View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Javabumb Javabumb is offline
external usenet poster
 
Posts: 6
Default Counting occurrence of day of week AND hour of day

Using Excel2007

I am using a dataset produced by a radar speed counter. The date field
appears as: m/d/yyyy h:mm

Each record also contains two entries for Peak Speed and Low Speed.

I want to create an array that holds the count for each day of the week
(1-7) and the hour of the day (0-23), resulting in 168 cells. I want to use
a THRESHOLD value to filter the day & hour values so that I can create a
chart that shows periods of significant speed violations for use by local law
enforcement.

Example; The day_hour range contains 50,000+ entries. I want to count the
number of entries in this range by matching the DAY of WEEK and the HOUR of
the DAY. I want to be able to count how many vehicles were detected on
Fridays at 4pm for example.

I have tried COUNTIF, IF, and everything else I can think of. I'm
frustrated, any help is appreciated.

--mark