+ Reply to Thread
Results 1 to 5 of 5

Calculating the difference between monthly figures

  1. #1
    Registered User
    Join Date
    01-24-2013
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    1

    Calculating the difference between monthly figures

    Hi all,

    I have an educational table looking at improvements in students learning and need help calculating improvements in years and months.

    I have figures such as 9 years and 9 months, as 9.09 improving to 10 years 4 months 10.04. I need to work out how to calculate the formula to work out that the change is 7 months.

    Is there a certain format that would help and what function do I need to work out the improvement or change?

    Any help very much appreciated!!!! xxx

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Calculating the difference between monthly figures

    Try this

    =(INT(LEFT(B1,FIND(".",B1)-1))-INT(LEFT(A1,FIND(".",A1)-1)) ) * 12 + INT(RIGHT(B1,LEN(B1)-FIND(".",B1))) - INT(RIGHT(A1,LEN(A1)-FIND(".",A1)))

    Assuming that 9.09 is in A1 and 10.04 is in B1
    Martin

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Calculating the difference between monthly figures

    Another way:

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,409

    Re: Calculating the difference between monthly figures

    Assuming A1 is first, A2 is second duration of time in yy.mm format
    =(INT(A2)-INT(A1))*12+(MOD(A2,INT(A2))-MOD(A1,INT(A1)))*100
    Quang PT

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,409

    Re: Calculating the difference between monthly figures

    My solution in #4 calculate months only,i.e 7 months, 14 months,...
    If you want to format as 0 years 7 months, 1 years 2 months, try this:
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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