subtotal dates/times

garyrobbins used Ask the Experts™
Hello again, Experts, I need your help.

See attached example.  Column A contains date/time entries (1/6/2014  7:38:52 PM).  I want to sub-total them by how many entries there are for each hour segment.  For example:
1/2/2014 5pm = 3
1/3/2014 5pm = 4
1/6/2014 5pm=  3
1/6/2014 6pm = 1
1/6/2014 7pm = 1

Gary (frigid still in Cincinnati)
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
First place a space before PM in your entries in column B, then try:


copied down.
You can also summarize with a Pivot Table.

Select the column.. go to Insert Pivot Table, drag the item to the Row Label area, then drag again to the Summation area.

You can then right click the row label column and select Group, then select Dates and Hours (you can adjust Start/End times)


where is the "Summation area"?
Become a CompTIA Certified Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.



Have you tested this formula in Col B of my sample file?
I get a circular reference warning.
Its the section to the right of the row label area (Sigma Values)
The formula goes in column C.  It references your column B inputs against the column A data.
again, the summation area is the area of (S Values)

... can't enter Sigma symbol


Ok, so I am a newbie to Pivot Tables...

I got the Summation area drop...
Col B now shows "Count of Start Date/Time"

[ right click the row label column and select Group, then select Dates and Hours ]

When I "right click col A" I don't see a "select group" option.
What to do?
In the actual Pivot table that was created, right click in the left column, and you should see a Group category.  Select that.  You may see that "Months" is preselected.  Deselect that first.  Then select Hours and select Days.

At the top check the Starting At checkbox and adjust the time so that it has 17:00:00 as the time (assuming 5:00 PM is your smallest time entry).

Click Ok to finish.

You can then go to the Design tab in the PivotTable Tools section of the Ribbon that is active when you are in the Pivot table.  From the Report Layout section, select Show in Tabular Form (you might like that format better).


Ok, that was fun and easy.  Thank you.  You guys are terrific!

A special thanks for the detailed description of steps.


Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial