+ Reply to Thread
Results 1 to 4 of 4

Deduct one date from another

  1. #1
    Registered User
    Join Date
    05-05-2006
    Location
    Kent, England
    Posts
    37

    Deduct one date from another

    Hi People

    Can someone give me a formula that will allow me to deduct one date from another and return a value in years and months? Many Thanks for your kind help!

    ExcelBob

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Hi, Bob. Try:

    =DATEDIF(A1,A2,"Y")&" Years "&DATEDIF(A1,A2,"M")&" Months"

    HTH

    Jason

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

    I think you'd need a tiny tweak......2nd DATEDIF should use "YM" as the 3rd argument, i.e.

    =DATEDIF(A1,A2,"Y")&" Years "&DATEDIF(A1,A2,"YM")&" Months"

  4. #4
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Ah, yes. Good catch. Thanks, DLL.

    Jason

+ 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