+ Reply to Thread
Results 1 to 10 of 10

Find number of days between two dates

  1. #1
    Registered User
    Join Date
    02-12-2012
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2007, 2013
    Posts
    89

    Find number of days between two dates

    I have attached a workbook for example, the dates im looking to find difference between is marked in yellow...Need result in column E, would be nice with a formula you can just drag down...

    Thanks

    PS: Tried doing this myself, but the dates have weird formatting in these documents, so not sure how to deal with it.
    Attached Files Attached Files
    Last edited by Test123Test; 04-17-2014 at 03:03 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Find number of days between two dates

    =c2-int(a2)
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Find number of days between two dates

    Or this...
    =ROUNDUP(C2-A2,0)
    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
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Find number of days between two dates

    The orange cells are helpcolumns (you can hide them).

    In the green cells the result.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find number of days between two dates

    Seeing that your profile indicates Excel 2007 or 2013 I have used a later version's format. I changed the values in columns A and C to be real dates and not just a representation of dates by selecting column A and then on the Data tab Text to Columns and clicked Next, Next, chose Date and YMD and clicked finish. I repeated the procedure for the values in column C.

    The result is in this file:
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Find number of days between two dates

    Ron, despite the fact that the "dates" are not real dates, both shg's and my suggestions (=C2-INT(A2) and =ROUNDUP(C2-A2,0) ) both look like they calc the correct answer

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find number of days between two dates

    @FDibbins

    Yes they do.

    I was just giving a solution that involved converting the dates to real dates....if needed.

  8. #8
    Registered User
    Join Date
    02-12-2012
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2007, 2013
    Posts
    89

    Re: Find number of days between two dates

    Thanks guys, I used oeldere and newdovermans solutions, works perfect.

    Helpful forum as always!

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Find number of days between two dates

    Thanks for the reply. Glad I could help.

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find number of days between two dates

    Glad to help and that you have a solution that works for you.

+ 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. Help on count the number of days in between dates and then average number of days
    By Barbara Excel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2013, 12:13 PM
  2. [SOLVED] Subtract Two Dates By The Number of Days, But Only Inlcude Work Days
    By ptho16 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-16-2012, 11:31 AM
  3. [SOLVED] How to find the number of days from 2 dates?
    By cyberdude in forum Excel General
    Replies: 1
    Last Post: 06-16-2006, 03:50 AM
  4. Replies: 3
    Last Post: 11-03-2005, 02:30 AM
  5. [SOLVED] Find number of days between to dates
    By Qaspec in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-20-2005, 09:06 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