+ Reply to Thread
Results 1 to 4 of 4

Help with Formula to give the diference of days between 2 dates

  1. #1
    Registered User
    Join Date
    05-24-2014
    Posts
    34

    Help with Formula to give the diference of days between 2 dates

    Stumped... Trying to get the results in days between two dates.
    Cell T and Cell U are dates that are entered in to the sheet. $C$1 is the current date of the day.

    If both T=0 and U=0, then the cell should be blank. It T has a date and U=0, then it should give the number of days between T and $C$1.

    If both T and U have a date, then it could be blank or, preferably, it could have the difference in days between the dates in T and U.

    So far I have something like this... which isnt working or sorting well...
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If someone would like to take a look at the sheet I would be happy to share it... thanks
    Last edited by Vicious00013; 06-04-2014 at 11:24 AM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Help with Formula to give the diference of days between 2 dates

    this is what I come up with, substitute T and U appropriately
    =IF(AND(T2<>"",U2<>""),DATEDIF(T2,U2,"d"),IF(AND(U2<>"",T2=""),DATEDIF(T2,A2,"d"),IF(AND(U2="",T2=""),"")))
    where T is your one earlier date and U is your later date and A is your TODAY().
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Help with Formula to give the diference of days between 2 dates

    Hi,

    Can you post a sample workbook if Sambo's formula doesn't work ?
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  4. #4
    Registered User
    Join Date
    05-24-2014
    Posts
    34

    Re: Help with Formula to give the diference of days between 2 dates

    I got some help and ended up doing it this way...
    Formula: copy to clipboard
    Please Login or Register  to view this content.




    Thanks all

+ 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. Replies: 3
    Last Post: 11-27-2013, 07:05 AM
  2. Formula for numbering dates and days
    By kona0197 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 04-10-2013, 02:45 AM
  3. Replies: 1
    Last Post: 11-01-2012, 03:41 PM
  4. What is the Formula for Days remaining between 2 dates?
    By Fayt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-25-2010, 11:53 AM
  5. [SOLVED] Formula to give 5%rise in a figure if it occurs b/wn 2 dates
    By lwhat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-28-2005, 07:05 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