+ Reply to Thread
Results 1 to 4 of 4

Help with DateDif formula

  1. #1
    Registered User
    Join Date
    06-23-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    29

    Help with DateDif formula

    Could someone look at the attached file and let me know why my datedif function is not working.

    Thanks!!
    Attached Files Attached Files

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Help with DateDif formula

    You've reversed your start and end dates in the DATEDIF functions. The end date cannot be before the start date.
    Switch them and the formulas will work as expected.

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Help with DateDif formula

    Also you probably need a couple more spaces;
    =DATEDIF(B2,A2,"Y")&" Years, "&DATEDIF(B2,A2,"YM")&" Months, "&DATEDIF(B2,A2,"MD")&" Days"
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  4. #4
    Registered User
    Join Date
    06-23-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Help with DateDif formula

    Ahhhaaa!!!! I knew it had to be something simple! Thanks so much! And, yes, did a little formatting to make it easier to read.

    Thanks again - you saved me from pulling all my hair out!

+ 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. what am I missing in this datedif formula????
    By marquint in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-01-2013, 10:28 PM
  2. [SOLVED] Datedif Formula????
    By Bosox76 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-03-2013, 11:36 AM
  3. [SOLVED] DATEDIF formula
    By Nubian in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-01-2013, 10:09 AM
  4. DateDif Average? Damn DateDif
    By UTCHELP in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 12-10-2012, 08:53 AM
  5. DATEDIF Formula
    By kwright90 in forum Excel General
    Replies: 4
    Last Post: 04-24-2007, 03:34 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