+ Reply to Thread
Results 1 to 6 of 6

Groupng time in pivot tables showing difference between start and end date

  1. #1
    Registered User
    Join Date
    11-09-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    20

    Groupng time in pivot tables showing difference between start and end date

    I have start query dates and end query dates and need to find the resolution time in between. This is for around 2000 incidents and could be more every month.

    I have added a column to take away the start date from query date but the format of the time, even when i go in custom and do mm/dd/hh is not coming up correctly.

    What I would like to do is create a pivot table and show the time in groups (right click group in pivot table) and show all queries in groups of 10 mins, 20 mins etc.
    I then need to create a chart based on the averages.

    Could you advise how i could do this?

    I really really appreciate your help!!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    11-07-2012
    Location
    .
    MS-Off Ver
    2003 - 2013 for Windows
    Posts
    121

    Re: Groupng time in pivot tables showing difference between start and end date

    Hello,

    add these three columns to your data table, starting with H2 for the elapsed time and copied down.

    Elapsed - =G2-A2
    Hours - =HOUR(H2)
    Minutes - =MINUTE(H2)

    Then build a pivot table and drag the Hours and Minutes in the Row area. Drag the Date into the Values area and set it to count.

    You can group the minutes column in sets of twenty or as desired: Select any of the minute cells, right-click, select "Group" and set the "By" field to 20 to group by every 20 minutes
    Last edited by lmp; 11-21-2012 at 04:31 AM.
    regards, LMP

  3. #3
    Registered User
    Join Date
    11-09-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Groupng time in pivot tables showing difference between start and end date

    Thank you very much for replying. Just a quick one. What date needs to go into the value? As there are 2 dates?

    Thanks very much :-)

  4. #4
    Forum Contributor
    Join Date
    11-07-2012
    Location
    .
    MS-Off Ver
    2003 - 2013 for Windows
    Posts
    121

    Re: Groupng time in pivot tables showing difference between start and end date

    It does not matter. Any field with a value in each row will do, since the values are simply counted.

  5. #5
    Registered User
    Join Date
    11-09-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Groupng time in pivot tables showing difference between start and end date

    Hi, This works fine in the data sheet but however, when i put this into a pivot table the values are shown as DD/MM/1900?? And not the hours and mins?

    Is there a way of changing this format to show the same values in the pivot table?

    Kind regardsa and thanks for your help

  6. #6
    Forum Contributor
    Join Date
    11-07-2012
    Location
    .
    MS-Off Ver
    2003 - 2013 for Windows
    Posts
    121

    Re: Groupng time in pivot tables showing difference between start and end date

    Format the values to the number format you need.

    See attached.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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