Link to home
Start Free TrialLog in
Avatar of propolis
propolisFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Calculation months from date

Please read comment in sample spreadsheet
milestone-formula.xls
Avatar of Michael Fowler
Michael Fowler
Flag of Australia image

This formula will give you what you are after

="contract start date + " &(YEAR(D5)-YEAR($E$1))*12+MONTH(D5)-MONTH($E$1) & " month"

Just place it in cell B5 and drag it down. Note you will need to remove the formula in D5 or it will cause a circular reference

For more info on the formula see
http://support.microsoft.com/kb/214134

Michael
Avatar of barry houdini
You can use DATEDIF to determine the number of months between two dates, perhaps try this version

="contract start date + "&DATEDIF(E$1,D5,"m")&" months"

regards, barry
Avatar of propolis

ASKER

Hi Michael,

This seems to be working except for one thing.  I put the formula in Column B, but no date in Column D, then it show a weird display in column B.  Can I hide whats in column B until a valid date has been entered in column D

Eddie
ASKER CERTIFIED SOLUTION
Avatar of barry houdini
barry houdini
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial