Solved

subtotal dates/times

Posted on 2014-03-03
10
146 Views
Last Modified: 2014-03-03
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

Thanks,
Gary (frigid still in Cincinnati)
N-Kansas-City-60-day-Study-EE-Su.xlsx
0
Comment
Question by:garyrobbins
  • 6
  • 4
10 Comments
 
LVL 23

Expert Comment

by:NBVC
ID: 39901416
First place a space before PM in your entries in column B, then try:

=COUNTIFS(A:A,">="&B2,A:A,"<"&B2+TIME(1,0,0))

copied down.
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39901431
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)
0
 

Author Comment

by:garyrobbins
ID: 39901467
where is the "Summation area"?
0
 

Author Comment

by:garyrobbins
ID: 39901474
=COUNTIFS(A:A,">="&B2,A:A,"<"&B2+TIME(1,0,0))

Have you tested this formula in Col B of my sample file?
I get a circular reference warning.
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39901482
Its the section to the right of the row label area (Sigma Values)
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 23

Expert Comment

by:NBVC
ID: 39901488
The formula goes in column C.  It references your column B inputs against the column A data.
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39901498
again, the summation area is the area of (S Values)


... can't enter Sigma symbol
0
 

Author Comment

by:garyrobbins
ID: 39901557
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?
0
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 39901571
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).
0
 

Author Comment

by:garyrobbins
ID: 39901643
Ok, that was fun and easy.  Thank you.  You guys are terrific!

A special thanks for the detailed description of steps.

Gary
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Adding Text that self adjusts in a Cell 8 33
Excel partial font macro 14 26
time format showing wrong 12 51
Excel macro runs twice 13 51
A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now