+ Reply to Thread
Results 1 to 6 of 6

Calculate the difference in value of an item between two dates

  1. #1
    Registered User
    Join Date
    03-28-2010
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    60

    Calculate the difference in value of an item between two dates

    Example.xlsx

    Hello,

    I am trying to figure out how to calculate the difference in value of an item between two dates on a pivot table. I have one table that feeds the Pivot Table and it has three fields:

    Data as of Date
    Item
    Value

    So each day, the Data as of Date is updated to the current day and the items are the same but the values are different. I need to calculate the difference in value between the most recent date and x days ago. I cannot figure out how to do this via Pivot Table. Any help is much appreciated.

    Thanks,

    Learning_vba
    Last edited by learning_vba; 04-04-2014 at 04:53 PM. Reason: uploaded example workbook

  2. #2
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Calculate the difference in value of an item between two dates

    uploading a sample workbook with mock data, manually creating what you would want the pivot table to return for a few examples would be helpful.
    Please click the * icon below if I have helped.

  3. #3
    Registered User
    Join Date
    03-28-2010
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Calculate the difference in value of an item between two dates

    Ok- I have uploaded an example workbook.

    Thank you

  4. #4
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Calculate the difference in value of an item between two dates

    So every Item will be listed only twice? will it always be sorted based on date (oldest to newest)?

  5. #5
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Calculate the difference in value of an item between two dates

    Assuming that is the case, incorporating a helper column should give you what you need.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-28-2010
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Calculate the difference in value of an item between two dates

    Thank you- this works perfect

+ 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. [SOLVED] 2 lists: how to compare and calculate difference in item numbers
    By chemoul in forum Excel General
    Replies: 5
    Last Post: 02-15-2013, 12:59 AM
  2. Calculate difference in dates
    By papaexcel in forum Excel General
    Replies: 9
    Last Post: 07-27-2009, 02:43 PM
  3. Calculate difference between dates
    By paula vasile in forum Excel General
    Replies: 1
    Last Post: 09-23-2008, 06:42 AM
  4. [SOLVED] How do I calculate the difference between 2 dates (m,d,y) ?
    By ady_sandu in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-29-2005, 01:05 PM
  5. Calculate Difference b/e 2 dates.
    By scharee in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-02-2005, 12:05 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