+ Reply to Thread
Results 1 to 3 of 3

Calculate number of days between two dates within a pivot table.

  1. #1
    Registered User
    Join Date
    02-03-2014
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Calculate number of days between two dates within a pivot table.

    Hi,

    Within my job I have been using Excel to display, sort and present data in a professional way. However, I now need to progress to using a bit of programming. Highly exciting, but I am getting a bit lost. Would appreciate some help from you younger, on the ball experts. I have created a pivot table with two columns below. Column C indicates the start date. Column D indicates the completion date. Blank cells show live data. I need to determine the number of days. 1) That have been - completed - a) That were < 2 Days, b) >2 but less than a week, c) > than a week (all). I have used the following formulas. a) countif(D4:D61, "<3"), b) countifs(D4:D61, ">2", D4:D61, "<=8"). Easy for completed data. My problem is, how do I determine the number of days, live data that following the same queries as above. I have figured out I can use countif to count the number of blanks by - countif(D4:D61, "(blank)") but how to put it all together and what formula should I use. I am trying to use countifs or if statements but am totally lost. I am experimenting with Today() etc. Would be happy for any guidance or direction. Not to old to learn. Cheers.

    Column C Column D
    ---------- ----------
    06/01/2014 (blank)
    25/11/2013 (blank)
    13/12/2013 14/01/2014
    27/12/2013 17/01/2014
    27/12/2013 10/01/2014
    31/12/2013 (blank)
    04/01/2014 14/01/2014
    07/01/2014 15/01/2014
    09/01/2014 14/01/2014
    09/01/2014 17/01/2014
    09/01/2014 (blank)
    09/01/2014 10/01/2014
    13/01/2014 (blank)
    13/01/2014 15/01/2014
    13/01/2014 16/01/2014
    13/01/2014 15/01/2014
    13/01/2014 (blank)
    13/01/2014 16/01/2014
    13/01/2014 (blank)
    13/01/2014 15/01/2014
    13/01/2014 13/01/2014
    13/01/2014 (blank)
    13/01/2014 14/01/2014
    14/01/2014 14/01/2014
    14/01/2014 16/01/2014
    ETC

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Calculate number of days between two dates within a pivot table.

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    02-03-2014
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Calculate number of days between two dates within a pivot table.

    Hi,

    Attached the file as requested. Within the diffirent sheet you can see my attempts to solved this issue. Really appreciate your help.
    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)

Similar Threads

  1. Calculate number of days between dates
    By karl8695 in forum Excel General
    Replies: 1
    Last Post: 05-08-2012, 12:54 PM
  2. calculate number days between dates less Sat and Sun
    By maacmaac in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-26-2010, 11:09 AM
  3. calculate number of days btw dates
    By Nelson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-01-2006, 09:02 PM
  4. Calculate number of days in a column of dates
    By Barbara in forum Excel General
    Replies: 3
    Last Post: 05-25-2005, 11:21 AM
  5. Calculate number of days in a column of dates
    By Barbara in forum Excel General
    Replies: 8
    Last Post: 05-25-2005, 09:55 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