MrExcel's Learn Excel #495 - Grouping by Hour

If you like this content, please consider visiting the video on YouTube and subscribe to the MrExcel Channel to show your support!
This video has been published on Apr 21, 2009.
In yesterdays podcast, I proposed a formula to solve Jonathans dilemma of analyzing information by hourly buckets. An easier solution is to use the Group by Hour feature in a pivot table. Episode 495 shows you how.

This blog is the video podcast companion to the book, Learn Excel from MrExcel. Download a new two minute video every workday to learn one of the 277 tips from the book!
maxresdefault.jpg


Transcript of the video:
Hey welcome back to the MrExcel podcast.
I am Bill Jelen.
Now, in yesterday's podcast, we had a call from Jonathan, who wanted to know how he could group all of his dates up to hourly information.
He had a column of dates here with both the date and the time.
He wanted to break that down into hourly buckets.
And I went through this big long formula.
Break out just the hour.
And I started to think about it after we posted the podcast, there's probably a much better way to do that.
I'm gonna do it using a pivot table.
So, I'm going to look here and notice that we have Alpha columns either in column A or B.
Either the T or the status column, We're going to use those to get a COUNT.
I'll select one cell in the data.
Use Data>Pivot table, And Click Finish.
I'm going to take the date and the time and drop it over here and call them A.
And then take one of my alphabetic columns and drop it where it says drop Data items.
Here that gives me a count of those Columns and right now We're seeing every single minute of every single day, which is going to be a really annoying report.
But here's the trick.
Here's the thing that's going to make it work.
I'm going to choose the first date and time.
Right click and say Group and Show Detail group and say that I want to group that just by hours.
Not five minutes, not by months quarters just choose Hours.
Click OK.
And very quickly Excel will take all of that data and consolidate it down to one row per Hourly bucket.
Perfect solution!
Much easier than the formula that we used yesterday, So, thanks to Jonathan for sending into question.
Sorry had to wait for the right answer, the next day.
Thanks for stopping by.
We'll see you next time for another netcast from MrExcel.
 

Forum statistics

Threads
1,214,788
Messages
6,121,580
Members
449,039
Latest member
Arbind kumar

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