+ Reply to Thread
Results 1 to 2 of 2

getting year and month from two dates

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-10-2007
    Location
    Manchester, England
    MS-Off Ver
    2013
    Posts
    133

    getting year and month from two dates

    Hi

    i have a date in column a and a date in column b like this 01/10/2010 english way

    how can i find out how many years between to dates also months
    Last edited by Sheepkin_Coat; 04-05-2011 at 07:32 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: getting year and month from two dates

    Hi,

    For Years: in C1
    =YEAR(B1)-YEAR(A1)

    for months: in D1
    =MONTH(B1)-MONTH(A1)+C1*12

    You may wish to adjust for boundary conditions if relevant.

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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