+ Reply to Thread
Results 1 to 2 of 2

Advanced Pivot Table

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    houston, tx
    MS-Off Ver
    Excel 2010
    Posts
    7

    Advanced Pivot Table

    I believe that I may be stretching the capabilities of Excel Pivot Tables here but thought I would pose the challenge to see if anyone can help me out...

    I'm trying to build a pivot table that has sequential dates as the columns, names of people as rows, and 1's or 0's in the value fields. 1's represent that the person was on location at that date and 0's represent that the person was off location.

    The problem that I have is that the source data contains one column with peoples names, another with "Arrival Date", and another with "Departure Date". People's names can be repeated multiple times.

    The attached spreadsheet contains a tab called "Desired Pivot Table". It is a table built with formulas that shows what I would like the pivot table to show.

    I am OK with the solution utilizing power query if necessary but would like to avoid formulas.

    Thanks for the help!
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Advanced Pivot Table

    When you run out to the end of your rope with pivot tables, it's time to play with the source data. Very often, a helper column is all that is required. However, in this case, you need to get normalized data: meaning one record per person per time slot.

    I had to resort to VB to get this done. On the Booking Table Sheet, you fill in the blue table. Click on the Normalize Data button and it creates the green table that is used to build the new pivot table. It's not zeros and ones, it's blanks and ones.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. Advanced pivot table filtering VBA
    By deadlyliquidxxx in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2015, 10:11 AM
  2. Pivot table advanced options
    By Atiah in forum Excel General
    Replies: 1
    Last Post: 10-04-2014, 01:00 AM
  3. [SOLVED] Return Names From List w/o Advanced Filter or Pivot Table?
    By d_striker in forum Excel Charting & Pivots
    Replies: 11
    Last Post: 12-28-2012, 08:02 PM
  4. Pivot Table - Advanced Filter or Countif in Excel 2007
    By Andjsmith in forum Excel General
    Replies: 1
    Last Post: 07-17-2012, 10:59 AM
  5. Advanced Pivot Table VBA question
    By 4am in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-03-2011, 04:59 PM
  6. Advanced formating on pivot table cell
    By merlino in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2009, 12:29 PM
  7. [SOLVED] Advanced Pivot Table
    By [email protected] in forum Excel General
    Replies: 1
    Last Post: 05-03-2006, 01:50 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