Counting frequency of occurence by hour within a date/time cell

rosieribbons

New Member
Joined
Aug 8, 2012
Messages
16
(A) day(B) calldate
Friday01/05/2015 14:11
Friday08/05/2015 11:47
Monday09/03/2015 14:40
Friday22/05/2015 15:33
Tuesday19/05/2015 16:13
Tuesday10/03/2015 09:24
Tuesday12/05/2015 11:34
Monday30/03/2015 11:55
Tuesday21/04/2015 09:49
Friday10/04/2015 15:54
Tuesday31/03/2015 14:23
Wednesday01/04/2015 13:12
Thursday05/03/2015 14:25
Monday27/04/2015 09:51
Tuesday07/04/2015 15:36
Monday09/03/2015 13:16
Tuesday24/03/2015 09:19
Thursday09/04/2015 13:38
Tuesday31/03/2015 13:21
Tuesday03/03/2015 09:11

<tbody>
</tbody>

Hi guys,

hope you can help.

Here's a sample of the data I'm working with. They relate to phone calls received (other columns on the sheet too but irrelevant for these purposes.) There are over 4,000 rows in total, spanning a 3 month period (about 50 calls a day over an 8 hour period). I need to count and show:

- The number of calls received on average across a working week, per hour between 9am and 5pm.
(eg between 9am and 10am, we receive 27 calls, between 10am and 11am - 45 calls)

- The same data, but differentiated across the days of the week (eg on specifically Mondays between 9am and 10am we receive an average of 32 calls, but on tuesdays 9am and 10am it's an average of 16 calls)

Can anyone help? I've been using Countif for most of my other work but can't seem to get my head around whether it would work for this. I've seen similar posts suggesting a table array but with so many rows of different dates, I am hoping there's another way?!


Thanks,

:)
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
you would need to split out the date and time to separate columns. the easiest way( that I know of) is to have a column with the formula =int(B2) in your example this would return 01/05/2015. In another column you then do =b2-c2 (c2 being your new column), this would then return the time. you could then do a countifs formula like the below to determine how many are between 9am and 10am.

=COUNTIFS(D:D,">"&"09:00",D:D,"<"&"10:00")
 
Upvote 0
thankyou! I really appreciate your help.

I think that has worked a treat - although I'm a bit worried that my count for 12-1 and 1-2pm is the exact same figure... this strikes me as a bit too much of a coincidence. Have I not accounted for 24 hour clock?

Also, do you know how I might go on to populate the cells in the right of this table? To get data specifically on days of the week?

Time of daynumber of calls (total) number of calls (average day)average Mondayaverage Tuesdayaverage Wednesdayaverage ThursdayAverage Friday
0900 - 10005278
1000 - 110062010
1100 - 12005288
1200 - 13005058
1300 - 14005058
1400 - 15005499
1500 - 16005088
1600 - 17003776

<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>


<colgroup><col><col><col></colgroup><tbody>
</tbody>
The next phase I have to look at is how average call duration fluctuates across the working day (ie when do our most complex enquiries come in?) Sample data:

daycalldatejust datejust timeduration (seconds)Duration (minutes & seconds)
Friday01/05/2015 14:1101/05/201514:11:16677952:59
Friday08/05/2015 11:4708/05/201511:47:37544030:40
Monday09/03/2015 14:4009/03/201514:40:47480620:06
Friday22/05/2015 15:3322/05/201515:33:15462817:08
Tuesday19/05/2015 16:1319/05/201516:13:49435812:38
Tuesday10/03/2015 09:2410/03/201509:24:14392705:27
Tuesday12/05/2015 11:3412/05/201511:34:07345557:35
Monday30/03/2015 11:5530/03/201511:55:18336556:05
Tuesday21/04/2015 09:4921/04/201509:49:46323953:59
Friday10/04/2015 15:5410/04/201515:54:26318853:08
Tuesday31/03/2015 14:2331/03/201514:23:18302850:28
Wednesday01/04/2015 13:1201/04/201513:12:27297049:30
Thursday05/03/2015 14:2505/03/201514:25:09283147:11
Monday27/04/2015 09:5127/04/201509:51:10282547:05
Tuesday07/04/2015 15:3607/04/201515:36:00281346:53
Monday09/03/2015 13:1609/03/201513:16:41276246:02
Tuesday24/03/2015 09:1924/03/201509:19:25274145:41
Thursday09/04/2015 13:3809/04/201513:38:08270245:02
Tuesday31/03/2015 13:2131/03/201513:21:11267944:39
Tuesday03/03/2015 09:1103/03/201509:11:17265644:16

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>


Thankyou so much :)
 
Upvote 0
maybe, don't know without seeing the formula!

if you want to find out how many calls were during a certain time period on a certain day you can do a really simple add to your current countifs formula

=COUNTIFS(D:D,">"&"09:00",D:D,"<"&"10:00") your current formula
=COUNTIFS(D:D,">"&"09:00",D:D,"<"&"10:00",A:A,"Monday") would give you all calls between 9am and 10am on a Monday

is this what you're hoping to find?
 
Upvote 0

Forum statistics

Threads
1,215,368
Messages
6,124,523
Members
449,169
Latest member
mm424

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