Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
GEM GEM is offline
external usenet poster
 
Posts: 90
Default Grouping Time in Pivots.

I have a large DB, this is a small example,

Client Date Time
1 5/31/2010 9:32:43 AM
1 5/31/2010 9:34:21 AM
1 5/31/2010 10:51:39 AM
3 5/31/2010 11:10:13 PM
3 5/31/2010 03:13:10 PM
5 5/31/2010 05:42:01 PM
5 5/31/2010 06:45:43 PM
2 5/31/2010 06:47:11 PM
4 5/31/2010 08:50:31 PM

I would like to create a pivot table that will count how many times each
client placed an order between these time groups,

9:00 am - 4:00 pm
4:01 pm - 6:00 pm
6:01 pm - 11:59 pm

Each entry is one order placed....
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 126
Default Grouping Time in Pivots.

Assuming Column C contains the Time, use a helper column with the following
formula...

=IF(AND(C2=0.375,C2<=0.666667),1,IF(AND(C20.6666 67,C2<=0.75),2,IF(C20.75,3,0)))

A result of 1 = 1st shift of 9am to 4 pm
A result of 2 = 2nd shift of 4:01 pm to 6 pm
A result of 3 = 3rd shift of 6:01 pm to midnight
A result of 0 = from 12:01 am to 9:59 am

--
Hope this helps.
If it does, please click the Yes button.
Thanks in advance for your feedback.
Gary Brown



"GEM" wrote:

I have a large DB, this is a small example,

Client Date Time
1 5/31/2010 9:32:43 AM
1 5/31/2010 9:34:21 AM
1 5/31/2010 10:51:39 AM
3 5/31/2010 11:10:13 PM
3 5/31/2010 03:13:10 PM
5 5/31/2010 05:42:01 PM
5 5/31/2010 06:45:43 PM
2 5/31/2010 06:47:11 PM
4 5/31/2010 08:50:31 PM

I would like to create a pivot table that will count how many times each
client placed an order between these time groups,

9:00 am - 4:00 pm
4:01 pm - 6:00 pm
6:01 pm - 11:59 pm

Each entry is one order placed....

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,180
Default Grouping Time in Pivots.

Excel 2007 PivotTable
Odd groups
http://c0718892.cdn.cloudfiles.racks.../06_01_10.xlsx
Pdf preview:
http://www.mediafire.com/file/m1ymz3nin0k/06_01_10.pdf

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Pivots Sekhar Charts and Charting in Excel 0 July 22nd 08 01:30 PM
Pvtbl Grouping: Time Duration Mike Excel Discussion (Misc queries) 3 March 13th 08 04:56 PM
several pivots officegirl Excel Discussion (Misc queries) 0 December 11th 07 07:04 PM
PivotTable grouping by Time Elapsed problem MJW[_2_] Excel Discussion (Misc queries) 2 October 5th 07 03:41 PM
Grouping a Set of Data By Time Interval Jon[_5_] Excel Discussion (Misc queries) 2 September 14th 07 09:06 AM


All times are GMT +1. The time now is 01:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"