Calculate month & year in between two dates

M

Montu

I have to calculate gratuity of an employee. for that reasone I have to
calculate total month & year from the date of joining to leaving date of
employee. example -
A B C
1 Date of Joining Date of Leaving Total Month & Year
2 11/02/2003 28/11/2006
in C2 I have to use a formula to calculate month & year, if calculate month
is greater than 6 month then it round up 1 year else zero. Is there any
formula about my quary. Thanks in advance
 
M

Mike H

Try this in c2. Ensure cell is formatted as general

=MROUND(DATEDIF(A2,B2,"m"),12)/12

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top