How about =(YEAR(A2)-YEAR(A1))*12+(MONTH(A2)-MONTH(A1)) (nt)
Also: =DATEDIF(A1,B1,"M"), where B1>A1. [NT]
having slight problem w/ both these formulas...
Aladin,
Thanks for the formulas, however, I see a slight problem in how they work. If my date range is 01/01/01 to 12/31/01, I want the formula to return 12 as the number of months, but instead both formulas return 11 as the number of months. Any way to work around this?
Thanks for your help,
Kevin
Re: having slight problem w/ both these formulas...
But the formula IS right... time elapsed is 11 months and 30 days (Not 12 months). 12 months will be in 01/01/02
Juan Pablo G.
Re: having slight problem w/ both these formulas...
These date & time things...
Juan is right. It seems you want some rounding here. What about:
=DATEDIF(A3,B3,"M")+ROUND(DATEDIF(A3,B3,"md")/30,0) ?
Aladin
=======
Revised formula works great - thanks!