+ Reply to Thread
Results 1 to 5 of 5

DATEDIF does not work in excell2007

  1. #1
    Registered User
    Join Date
    10-29-2017
    Location
    lisbon
    MS-Off Ver
    excell 2007
    Posts
    2

    DATEDIF does not work in excell2007

    I am trying to calculate the age difference in months between 2 specific dates using the =DATEDIF(A1,B1,"m") formula, but i get a #NUM error eveytime... Both the date cells are formated as date, and the first one inserted is before the second...

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,709

    Re: DATEDIF does not work in excell2007

    Seems like you have done it correctly. Without actually seeing your worksheet, a diagnosis is nearly impossible. Suggest you upload your worksheet. Be sure to sanitize it for confidential information.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: DATEDIF does not work in excell2007

    Is the date in B1 lower than the date in A1? If so, this could be the cause of the #NUM! error.

    EDIT* I just noticed what this line probably means..
    the first one inserted is before the second...
    so my statement above would not be relevant.
    Last edited by gmr4evr1; 10-29-2017 at 06:23 PM. Reason: Added edit
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699

    Re: DATEDIF does not work in excell2007

    That seems like it should work

    Check if the dates are actually numeric with this formula

    =COUNT(A1,B1)

    what result do you get?
    Audere est facere

  5. #5
    Registered User
    Join Date
    10-29-2017
    Location
    lisbon
    MS-Off Ver
    excell 2007
    Posts
    2
    Thank you all for your help.
    Somehow I got it to work with =DATEDIF(A1;B1;"M")

+ 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. [SOLVED] I can't get the DatedIf function to work -- returns #value!
    By adam_d_john in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-03-2017, 08:25 PM
  2. [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
  3. DateDif Average? Damn DateDif
    By UTCHELP in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 12-10-2012, 08:53 AM
  4. Datedif
    By Subhash Sarker in forum Excel General
    Replies: 2
    Last Post: 08-03-2012, 03:11 AM
  5. DATEDIF formula doesn't work on computer that uses different locale
    By Timoluege in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-29-2011, 09:49 AM
  6. DateDif
    By Ironman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-08-2009, 07:44 PM
  7. [SOLVED] Datedif
    By Jennifer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2006, 04:50 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