+ Reply to Thread
Results 1 to 3 of 3

Calculating number of days between two dates

  1. #1
    Registered User
    Join Date
    09-24-2008
    Location
    UK
    Posts
    75

    Calculating number of days between two dates

    Hello,

    I'm trying to determine the number of days taken to assess a claim, in Column E I have the date received and Column F the date determined. If the claim was received and assessed on the same day than that would count as one day.

    claim_received_date claim_detrmd_assd_dte Days
    2008-11-05 00:00:00.000 2008-11-05 12:00:17.000 2
    2008-11-10 00:00:00.000 2008-11-10 11:58:02.000 1

    PHP Code: 
    =F2-E2+
    I'm using the above formula, but Excel rounds numbers up and instead of the two records above being 1 day, the first counts as 2 and the second as 1. I'm trying to use whole numbers as opposed to any decimal points.

    Hope this makes sense.

    Thanks in advance.
    Last edited by Hblbs; 01-07-2009 at 11:34 AM.

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi

    Try:

    =INT(F2)-INT(E2)+1

    Richard
    Richard Schollar
    Microsoft MVP - Excel

  3. #3
    Registered User
    Join Date
    09-24-2008
    Location
    UK
    Posts
    75
    Quote Originally Posted by RichardSchollar View Post
    Hi

    Try:

    =INT(F2)-INT(E2)+1

    Richard
    Excellent, works great.

    Thanks Richard

+ 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