+ Reply to Thread
Results 1 to 4 of 4

Clarity on the Datedif function

  1. #1
    Registered User
    Join Date
    09-04-2020
    Location
    Dubai
    MS-Off Ver
    Office for Mac Version 16.40
    Posts
    5

    Clarity on the Datedif function

    Hi,

    I have the following two date values and I want to get the difference between the two. I am using the DATEDIF function

    1 28/02/2018
    2 26/11/1994

    Using the
    Please Login or Register  to view this content.
    I get the difference as 23 years whereas the actual difference is 24 years. Am i missing something?

    Thanks

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,303

    Re: Clarity on the Datedif function

    your 24th. year would not occur until 26/11/2018.

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Clarity on the Datedif function

    If you expect it to be 24:

    =YEAR(H1)-YEAR(H2)
    Quang PT

  4. #4
    Registered User
    Join Date
    09-04-2020
    Location
    Dubai
    MS-Off Ver
    Office for Mac Version 16.40
    Posts
    5

    Re: Clarity on the Datedif function

    Understood! Thank 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. Need clarity on a macro I am trying to write
    By DanMotill in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-29-2019, 10:05 AM
  2. [SOLVED] Nested if with today function and datedif function
    By KIMMEYER in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-06-2016, 10:12 AM
  3. [SOLVED] DATEDIF - DATEDIF Calculation returning a negative for days or months
    By DaveBre in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-27-2015, 06:22 PM
  4. Datedif function
    By vinodeigc in forum Excel General
    Replies: 2
    Last Post: 11-30-2013, 05:43 AM
  5. Clarity on part of a formula
    By pah8000 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-17-2013, 04:49 PM
  6. Using DateDif function
    By ac20402 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-08-2010, 04:59 PM
  7. #NUM! while using DATEDIF function
    By sriradh in forum Excel General
    Replies: 3
    Last Post: 08-22-2008, 03:21 PM

Tags for this Thread

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