Summarizing time frames

DaveSwanton77

New Member
Joined
Apr 15, 2002
Messages
39
I have a table which lists calls accepted at a call centre with the time and date stored in a field.

What I want to do is to create a query that will sum the total number of calls for each 5 minute period.

e.g 07:56:30 07:58:22 07:59:01 would equal 3 within the time period 07:55:01 and 08:00:00 ,etc.

TIA

Cheers
Dave

(y)
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Does it need to be 5 minutes?

You could use this expression for 10 minutes.

TimeFrame:TimeSerial(Hour([CallTime]),Minute([CallTime])-Minute([CallTime]) Mod 10,0)

This would change your times like this

CallTime--->TimeFrame

07:56:30--->07:50:00
07:58:22--->07:50:00
07:59:01--->07:50:00

You could now group and count on TimeFrame.
 
Upvote 0
Are you sure it works correctly?

Check by creating a query with the call time in one column and the expression in the other.

Then you can check it's returning the correct value.

When I tried it with mod 5 it didn't seem to be giving the
right answer. Though that was on a small(tiny) dataset.
 
Upvote 0

Forum statistics

Threads
1,221,783
Messages
6,161,940
Members
451,730
Latest member
BudgetGirl

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