+ Reply to Thread
Results 1 to 9 of 9

Calculated fields based on date difference

  1. #1
    Registered User
    Join Date
    09-19-2012
    Location
    Sao Paulo, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    13

    Exclamation Calculated fields based on date difference

    Hello everyone,

    I am currently facing the following problem and would appreciate your support.

    Attached you can see the current pivot table I have:

    Issue.jpg

    I would like to add two calculated fields which bring me the date difference between the 0.4 and 0.3, as well as 0.4 and 0.2.

    Your support is extremely appreciated!!

    Thanks

    Mr. Myr
    Attached Files Attached Files
    Last edited by mrmyr; 09-19-2012 at 08:44 AM. Reason: New screenshot

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Calculated fields based on date difference

    Hi

    maybe it would be easier to adapt the data range? Please post a sample sheet with some data and the PT

  3. #3
    Registered User
    Join Date
    09-19-2012
    Location
    Sao Paulo, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Calculated fields based on date difference

    Here it goes!

    Thank you very much!
    Attached Files Attached Files
    Last edited by Cutter; 09-19-2012 at 11:45 AM. Reason: Removed whole post quote

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Calculated fields based on date difference

    you can do it with calculated items but you've gotta format the result cells as numbers instead of dates
    Attached Files Attached Files
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  5. #5
    Registered User
    Join Date
    09-19-2012
    Location
    Sao Paulo, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Calculated fields based on date difference

    Thanks JosephP!
    For an unknown reason, the calculated items function is not enabled in my Excel. Do you know what is wrong?
    Thanks again!

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Calculated fields based on date difference

    you have to select a cell in the column headers before the button is enabled. ridiculous I know but there you go ;-)

  7. #7
    Registered User
    Join Date
    09-19-2012
    Location
    Sao Paulo, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Calculated fields based on date difference

    Thank you! Worked fine!
    Last edited by Cutter; 09-19-2012 at 11:46 AM. Reason: Removed whole post quote

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Calculated fields based on date difference

    @ mrmyr

    Welcome to the forum.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  9. #9
    Registered User
    Join Date
    09-19-2012
    Location
    Sao Paulo, Brazil
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Calculated fields based on date difference

    Thank you! I will make sure to set as solved next time. :-)
    Last edited by Cutter; 09-20-2012 at 10:39 AM. Reason: Removed whole post quote

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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