+ Reply to Thread
Results 1 to 6 of 6

Date minus date in days

  1. #1
    Registered User
    Join Date
    06-07-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    10

    Date minus date in days

    Dear Friends
    This is a great forum of sharp minds.
    I am working for a public Health program and need to know how I get the difference of two dates in days. e.g
    Cell A1 has date one and cell A2 has date 2 (both in mm/dd/yy format). I need the difference in days of these two dates in A3.
    Thanks in anticipation
    Dr Raj

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,292

    Re: Date minus date in days

    Please Login or Register  to view this content.
    Thats all
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Registered User
    Join Date
    06-07-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Date minus date in days

    Thanks for reply. This is the first thing I tried, does not work. Another related information- the excel sheet I am working with is the output of mdb file (MS Excess). We eneterd dated in mdb, converted to excel and try to subtract one date from other
    DateofInterview DoBChild
    23-03-13 16-09-09

  4. #4
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Date minus date in days

    Hello,

    Assuming 23-03-13 on Cell A2, 16-09-09 on Cell B2, copy paste this formula on Cell C2
    Please Login or Register  to view this content.
    Last edited by Lemice; 04-21-2013 at 10:51 AM.
    (copy pasta from Ford)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools

    Regards,
    Lem

  5. #5
    Registered User
    Join Date
    06-07-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Date minus date in days

    Thanks a lot! I think the problem is solved. Thank you all for your efforts!
    Dr Raj

  6. #6
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,292

    Re: Date minus date in days

    If my formula is not working then in A1 and/or A2 does not contain a date.
    This can happen when you import data from another program.
    You see a date but excel sees it as text.
    use the formula from Lem.
    If that doesn't work post a file here.

+ 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