Pivot Table - Grouping in 5 min Intervals

JB R

New Member
Joined
Dec 13, 2008
Messages
1
I have raw data showing activity throughout the day. Each entry is time stamped. I would like to create a pivot table and group it in 5 minute intervals throughout the day. This would create time blocks that i would include in a chart. I would prefer a solution that works with 2003.

Thanks in advance
:)
 

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
I would suggest another column next to the time stamp, the first row to be equal to the first row in the previous column, subsequent cells to contain this formula

=IF(J2<(I2+0.003472),I2,I2+0.003472)

this should give you a list of times at 5 minute intervals

Robert
 
Upvote 0
I agree in so far as a helper column is warranted though assuming you want to group on the basis of 00:00 to 00:04:59, 00:05:00 to 00:09:59 etc... I would opt for a simple:

J2: =TIME(HOUR(B7),FLOOR(MINUTE(B7),5),0)
Where B7 contains Time Stamp

This would round down the time stamp to the nearest 5 minute interval based on first interval being 00:00:00.
 
Upvote 0

Forum statistics

Threads
1,224,154
Messages
6,176,731
Members
452,740
Latest member
MrCY

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