age calculation.xlsx

1
Excel Function Dictionary © 1998 - 2000 Peter Noneley Age Calculation Page 1 of 1 Age Calculation You can calculate a persons age based on their birthday and todays date. 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 : 1-Jan-60 Years lived : 62 =DATEDIF(C8,TODAY(),"y") and the months : 7 =DATEDIF(C8,TODAY(),"ym") and the days : 23 =DATEDIF(C8,TODAY(),"md") You can put this all together in one calculation, which creates a text version. Age is 62 Years, 7 Months and 23 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 : 62.64 =(TODAY()-C23)/365.25 The calculation uses the DATEDIF() function. A B C D E F G H I 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

Upload: arunasagar2011

Post on 03-Jan-2016

94 views

Category:

Documents


1 download

DESCRIPTION

Age Calculation Ecxcel

TRANSCRIPT

Page 1: Age Calculation.xlsx

Excel Function Dictionary© 1998 - 2000 Peter Noneley

Age CalculationPage 1 of 1

Age Calculation

You can calculate a persons age based on their birthday and todays date.

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 : 1-Jan-60

Years lived : 63 =DATEDIF(C8,TODAY(),"y")and the months : 3 =DATEDIF(C8,TODAY(),"ym")and the days : 19 =DATEDIF(C8,TODAY(),"md")

You can put this all together in one calculation, which creates a text version.Age is 63 Years, 3 Months and 19 Days ="Age is "&DATEDIF(C8,TODAY(),"y")&" Years, "&DATEDIF(C8,TODAY(),"ym")&" Months and "&DATEDIF(C8,TODAY(),"md")&" Days"

Another way to calculate ageThis 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 : 63.30 =(TODAY()-C23)/365.25

The calculation uses the DATEDIF() function.

A B C D E F G H

1

23456789

10111213141516171819202122232425