subtracting 2 dates and put the result in difference in months ?

S

Susan

I have dates in the format of 29-Jan-04 and need to work out the difference
from this date to another IN MONTHS

e.g.
25-Sep-95 to 29-Jan-04 = how many months?
Answer = 100 but need formula so i dont have to do it one by one - i have
thousands to do - please help?
 
T

Tom Hutchins

If you want to see partial months (as a decimal value), you could use

=DAYS360(A1,B1)/30

To return whole months (rounding up), you could use

=ROUND(DAYS360(A1,B1)/30,0)

To return whole months (rounding down), you could use

=TRUNC(DAYS360(A1,B1)/30)

This last version gives the same results as DATEDIF, I believe.

Hope this helps,

Hutch
 

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