+ Reply to Thread
Results 1 to 4 of 4

Help with calculating dates in Pivot tables

  1. #1
    Registered User
    Join Date
    07-08-2020
    Location
    Southern California
    MS-Off Ver
    Office 365
    Posts
    2

    Post Help with calculating dates in Pivot tables

    I'm hoping someone can point me in the right direction. I'm "okay" in excel, but certainly not an expert.

    Mission: to create an interactive testing metric dashboard.
    I've downloaded a CSV file from the base testing system where test defects are entered. I've created a table for the data, then set up pivot tables and charts that I want to use for an interactive dashboard in excel. I have two dates within the data set, date opened and date closed. I want to show A) the number of days a defect case/ticket has been open IF it isn't closed; and B) show the number of days between when a case/ticket was opened and closed; and C) show the average number of days between opening and closing cases/tickets.

    I'm having issues formatting the dates properly and getting the formulas to work properly. I'm also struggling on whether or not to add the formulas to the table, since it's refreshed daily or to do the calculations within the pivot.

    Sample table and pivots attached.

    Any help is mucho appreciated.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,565

    Re: Help with calculating dates in Pivot tables

    Hello TheMadOctopus and Welcome to Excel Forum.
    A column (Days Open) has been added to the NCCTesting table using: =IF(G2="","",IF(H2="",TODAY()-G2+1,H2-G2+1))
    Three pivot tables are placed on Sheet1 utilizing the new column.
    The pivot table on the left displays the number of days a defect case/ticket has been open IF it isn't closed (note the filter is set to Date Closed is blank)
    The pivot table in the middle displays the number of days between when a case/ticket was opened and closed (note the filter is set to all Dates Closed except those that are blank)
    The pivot table on the right displays show the average number of days between opening and closing cases/tickets (note the filter is set to all Dates Closed except those that are blank)
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    07-08-2020
    Location
    Southern California
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Help with calculating dates in Pivot tables

    thank you so much! this is exactly what I needed, appreciate it!

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,565

    Re: Help with calculating dates in Pivot tables

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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. calculating fields in pivot tables
    By ammartino44 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-06-2014, 06:34 PM
  2. Calculate orders past agreed dates in pivot table and averages in pivot tables
    By applesandpears in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 10-18-2012, 05:26 PM
  3. Pivot tables calculating percentages
    By Newport Count in forum Excel General
    Replies: 1
    Last Post: 08-11-2009, 07:04 PM
  4. Calculating in Pivot Tables
    By Teresa in forum Excel General
    Replies: 2
    Last Post: 07-18-2006, 02:25 PM
  5. Calculating fields in pivot tables
    By kosciosco in forum Excel General
    Replies: 2
    Last Post: 06-06-2006, 09:45 AM
  6. Calculating a field in pivot tables
    By AmyTaylor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2006, 08:15 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