+ Reply to Thread
Results 1 to 3 of 3

Datedif function in excel

  1. #1
    Registered User
    Join Date
    10-24-2011
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Datedif function in excel

    Hi everyone,

    New to the forum and kind of to excel.

    I have searched the net for some kind of answer but cannot find one.. that I understand anyway.

    i have worked out the difference between two dates and used datedif to show answer as #years, # months, #days.... (I copied the formula off the net somewhere) =DATEDIF(B1,A1,"y")&" years, "&DATEDIF(B1,A1,"ym")&" months, "&DATEDIF(B1,A1,"md")&" days"

    but how can I just show years and days? I will be feeding the result into an oracle based system which only has fields for year and days.

    Thanks for any help.
    Last edited by foucauld; 10-24-2011 at 04:08 PM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Datedif function in excel

    You can amend that formula to this for years and days

    =DATEDIF(B1,A1,"y")&" years "&DATEDIF(B1,A1,"yd")&" days"
    Audere est facere

  3. #3
    Registered User
    Join Date
    10-24-2011
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Datedif function in excel

    OH! That simple!! lol

    Many Thanks.

+ 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