+ Reply to Thread
Results 1 to 6 of 6

Create Pivot to show total time by interval

Hybrid View

  1. #1
    Registered User
    Join Date
    05-21-2012
    Location
    Port Talbot
    MS-Off Ver
    Excel 2003
    Posts
    3

    Create Pivot to show total time by interval

    SampleData.xls

    I have a large list of all meetings. Each row details the type of meeting, date and start and finish time of meeting. Each row would be for an individual person.

    I need to create a table to show the total time spent in each type of meeting code during each 15 minute interval through the day.

    So, the column headers would be the start time of each 15 minute interval ( 08:00, 08:15, 08:30, 08:45 etc)
    The Row's would be each of the meeting codes ( HR, Quality, Finance etc)

    So far, I've done it a horrible slow way without pivot tables. Firstly I added an extra column for each 15 minute interval and put formulas in there that totalled the time spent in each interval for that row's meeting. ( So a meeting that was 08:20 - 08:40 would have 10 mins in the 08:15 interval and 10 minutes in the 08:30 interval )

    I then manually created a table and placed formulas in each to obtain the total time for each meeting code during each interval.
    Messy, long winded and slow. I seriously need to learn some pivot table skills !


    So my request - Is it possible to do it all using a pivot table in one go ?
    Or even if I still keep the first stage of my current method so that I have a large calculated table with each interval as columns, and every meeting in a row and then pivot that ?

    The attached sample data shows a small example of the raw data.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Create Pivot to show total time by interval

    I created an additional column (E) to get the time between Start and End.

    Please see attache file with the PivotTable.
    Attached Files Attached Files
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    05-21-2012
    Location
    Port Talbot
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Create Pivot to show total time by interval

    Thanks for the fast reply.

    I may not have explained this quite correctly.

    I've attached another file to show a better idea of the output table I needed.
    The difference is that I need it to be set intervals as column fields, each 15 minutes through the day.
    examplereult.xls

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Create Pivot to show total time by interval

    The PivotTable cannot show the data that doesn't exist. If nothing happened at 8:00 the PivotTable has nothing to display.

  5. #5
    Registered User
    Join Date
    05-21-2012
    Location
    Port Talbot
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Create Pivot to show total time by interval

    Apologies, I guess you've partly answered it for me as i know that pivot wont work from my original data.

    I've now attached a new version of my data where I've used some formulas to get me part way there. It now has the data sorted into the amount of minutes in each interval already.

    So now I need to go from the source data on the 'Data' sheet of attached workbook, to create a pivot table to look like what I have in the 'Result' sheet.

    Thanks again for continued help !SampleData2.xlsx

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Create Pivot to show total time by interval

    I would advice to use the data layout that was suggest previously.

    Please see attached file with formula solution.
    Attached Files Attached Files
    Last edited by AlKey; 04-05-2015 at 09:35 AM.

+ 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. Replies: 3
    Last Post: 07-30-2014, 07:09 PM
  2. Replies: 1
    Last Post: 04-29-2014, 04:42 AM
  3. [SOLVED] Getting the total values within time interval
    By Ivhee in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-14-2014, 05:22 AM
  4. Replies: 0
    Last Post: 04-23-2012, 10:06 AM
  5. [SOLVED] How do I show the Grand Total on a Pivot Chart?
    By Scott_F in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-26-2005, 12:05 AM

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