# Calculating the difference between monthly figures

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. ## 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

3. ## Re: Calculating the difference between monthly figures

Another way:

``Please Login or Register  to view this content.``

4. ## 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

5. ## 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.``

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