| You can calculate a persons age based on their birthday and todays date. | |||||
| The calculation uses the DATEDIF() function. | |||||
| The DATEDIF() is not documented in Excel 5, 7 or 97, but it is in 2000. | |||||
| (Makes you wonder what else Microsoft forgot to tell us!) | |||||
| Birth date : | 29 Apr 73 | ||||
| Years lived : | 41 | =DATEDIF(C8,TODAY(),"y") | |||
| and the months : | 1 | =DATEDIF(C8,TODAY(),"ym") | |||
| and the days : | 4 | =DATEDIF(C8,TODAY(),"md") | |||
| You can put this all together in one calculation, which creates a text version. | |||||
| Age is 41 Years, 1 Months and 4 Days | |||||
| ="Age is "&DATEDIF(C8,TODAY(),"y")&" Years, "&DATEDIF(C8,TODAY(),"ym")&" Months and "&DATEDIF(C8,TODAY(),"md")&" Days" | |||||
| Another way to calculate age | |||||
| This method gives you an age which may potentially have decimal places representing the months. | |||||
| If the age is 20.5, the .5 represents 6 months. | |||||
| Birth date : | 1 Jan 60 | ||||
| Age is : | 54.42 | =(TODAY()-C23)/365.25 | |||
Digital Marketing Consultant - Google Adwords, Bing Ads, Facebook Ads, Linkedin Ads, Also consultant with SEO, SMM & SMO Services
Monday, 2 June 2014
Age Calculation Formula in MS Excel
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment