+ Reply to Thread
Results 1 to 4 of 4

Pivot Table Grouped by Interval

  1. #1
    Registered User
    Join Date
    12-23-2011
    Location
    Rochester, NY
    MS-Off Ver
    Excel 2003
    Posts
    33

    Pivot Table Grouped by Interval

    Hi all!

    I'm trying to figure out if this can be done. I have data of employee schedules where each row has a start and an end time (along with department, location, manager, etc). I need to create a pivot table with half hour intervals (12am, 12:30am, 1am, etc) that counts the number of employees whose schedules overlap with each interval.

    Currently, I have a static list of the intervals and COUNTIFS formulas set up for each interval with data validation dropdowns to allow the user to filter the results, but if I could get a pivot table, that would make filtering so much easier.

    Example COUNTIFS formula currently in use: =COUNTIFS('Raw Data'!$D:$D,C$9,'Raw Data'!$M:$M,"<"&$A11,'Raw Data'!$N:$N,">="&$A10,'Raw Data'!$E:$E,$C$4,'Raw Data'!$H:$H,$C$5,'Raw Data'!$A:$A,$C$6)
    Explanation: Count if Weekday matches column header, start time is less than interval end time, end time is greater than or equal to interval start time, Area matches dropdown, Location matches dropdown, and Department matches dropdown.
    Attached Files Attached Files
    Last edited by heather1209; 10-19-2017 at 08:21 AM. Reason: Added sample workbook

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Pivot Table Grouped by Interval

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    12-23-2011
    Location
    Rochester, NY
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Pivot Table Grouped by Interval

    Thank you! I just added a sample workbook. The desired results are identical to the existing results, except I want it to be a pivot table instead of using formulas for each interval. Also, you'll see that there are 2 Raw Data tabs, this is because the full data set has duplicate and extraneous values that are easier to filter out by using an intermediate pivot table. For the purposes of this request, though, it is irrelevant.

  4. #4
    Registered User
    Join Date
    12-23-2011
    Location
    Rochester, NY
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Pivot Table Grouped by Interval

    Any ideas?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Pivot Table: Grouped Frequency Distribution
    By HP348 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-30-2012, 04:16 PM
  2. Pivot table - average of grouped sum
    By is49460 in forum Excel General
    Replies: 2
    Last Post: 10-19-2011, 03:10 AM
  3. Calculating grouped fields in a pivot table
    By sqrl18 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-14-2009, 04:52 PM
  4. Pivot table grouped results
    By BRFx2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-28-2006, 03:35 PM
  5. [SOLVED] elucidating grouped headings in pivot table
    By Martin in forum Excel General
    Replies: 1
    Last Post: 06-13-2006, 08:15 AM
  6. [SOLVED] Pivot Table - Grouped Dates - Format
    By PlanoMax in forum Excel General
    Replies: 3
    Last Post: 04-29-2006, 04:40 PM
  7. Pivot table-show all grouped items
    By sergv in forum Excel General
    Replies: 1
    Last Post: 09-05-2005, 03:05 PM
  8. [SOLVED] Pivot table- detecting grouped fields...
    By Dave Ramage in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-07-2005, 12:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1