简体   繁体   中英

Excel - how to calculate age from 'Age in Months'

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

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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM