Reputation: 999
If a person's age in months is 140 how could I calculate there age in Years and Months?
So for example I would want to see:
11 Years 8 Months
Upvotes: 0
Views: 173
Reputation: 234655
To get the months: =MOD(140,12)
To get the years: =ROUNDDOWN(140/12,0)
Putting it together =ROUNDDOWN($A$1/12,0) & " Years " & MOD($A$1,12) & " Months"
where $A$1 holds the value (140).
Upvotes: 6