0% found this document useful (0 votes)
39 views4 pages

Calculate Age in Excel Accurately

The document describes how to calculate age accurately in Excel by providing examples of start and end dates and the correct formulas to calculate the time elapsed between those dates in years, months, and days. It shows three sets of examples and identifies which formulas provide accurate results and which do not. The accurate formulas use DATEDIF, DATE, YEAR, MONTH, and DAY functions while the inaccurate ones simply take the difference between the dates.

Uploaded by

hyderabad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLS, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views4 pages

Calculate Age in Excel Accurately

The document describes how to calculate age accurately in Excel by providing examples of start and end dates and the correct formulas to calculate the time elapsed between those dates in years, months, and days. It shows three sets of examples and identifies which formulas provide accurate results and which do not. The accurate formulas use DATEDIF, DATE, YEAR, MONTH, and DAY functions while the inaccurate ones simply take the difference between the dates.

Uploaded by

hyderabad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLS, PDF, TXT or read online on Scribd
You are on page 1/ 4

Calculate Age in Excel Accuratel

Example Set 1
Start Date End Date Result

1/14/2013 1/14/2015 2 Years, 0 Months, 0 Days.

1/14/2013 1/14/2015 102 Years

1/14/2013 1/14/2015 1 Years 11 Months 30 Days

1/14/2013 1/14/2015 01 Years 12 Months 30 Days

Example Set 2
Start Date End Date Result

1/13/2015 1/14/2015 0 Years, 0 Months, 1 Days

1/13/2015 1/14/2015 100 Years 1 Days

1/13/2015 1/14/2015 -1 Years 11 Months 31 Days

1/13/2015 1/14/2015 99 Years 12 Months 31 Days

Example Set 3
Start Date End Date Result
3/22/2010 1/14/2015 4 Years, 9 Months, 23 Days

3/22/2010 1/14/2015 104 Years 9 Months 23 Days

3/22/2010 1/14/2015 4 Years 9 Months 24 Days

3/22/2010 1/14/2015 04 Years 10 Months 24 Days


ate Age in Excel Accurately
Example Set 1
Formula Accurate?

=+DATEDIF(A5,B5,"Y")&" Years, "&DATEDIF(A5,B5,"ym")&" Months, Yes


"&DATEDIF(A5,B5,"md")&" Days."

=YEAR(DATE(YEAR(B6)-YEAR(A6),MONTH(B6)-MONTH(A6)+1,DAY(B6)-
DAY(A6)+1))-1900&" Years "&IF(MONTH(DATE(YEAR(B6)-YEAR(A6),MONTH(B6)-
MONTH(A6)+1,DAY(B6)-DAY(A6)+1))-1=0,"",MONTH(DATE(YEAR(B6)-
YEAR(A6),MONTH(B6)-MONTH(A6)+1,DAY(B6)-DAY(A6)+1))-1&" Months Yes
")&IF(DAY(DATE(YEAR(B6)-YEAR(A6),MONTH(B6)-MONTH(A6)+1,DAY(B6)-
DAY(A6)+1))-1=0,"",DAY(DATE(YEAR(B6)-YEAR(A6),MONTH(B6)-
MONTH(A6)+1,DAY(B6)-DAY(A6)+1))-1&" Days")

=TEXT(B7-A7,"YYYY")-1900&" Years "&MONTH(B7-A7)-1&" Months "&DAY(B7- No


A7)&" Days"

=B8-A8 No

Example Set 2
Formula Accurate?

=+DATEDIF(A12,B12,"Y")&" Years, "&DATEDIF(A12,B12,"ym")&" Months, Yes


"&DATEDIF(A12,B12,"md")&" Days"

=YEAR(DATE(YEAR(B13)-YEAR(A13),MONTH(B13)-MONTH(A13)+1,DAY(B13)-
DAY(A13)+1))-1900&" Years "&IF(MONTH(DATE(YEAR(B13)-
YEAR(A13),MONTH(B13)-MONTH(A13)+1,DAY(B13)-DAY(A13)+1))-
1=0,"",MONTH(DATE(YEAR(B13)-YEAR(A13),MONTH(B13)- Yes
MONTH(A13)+1,DAY(B13)-DAY(A13)+1))-1&" Months
")&IF(DAY(DATE(YEAR(B13)-YEAR(A13),MONTH(B13)-MONTH(A13)+1,DAY(B13)-
DAY(A13)+1))-1=0,"",DAY(DATE(YEAR(B13)-YEAR(A13),MONTH(B13)-
MONTH(A13)+1,DAY(B13)-DAY(A13)+1))-1&" Days")

=TEXT(B14-A14,"YYYY")-1900&" Years "&MONTH(B14-A14)-1&" Months Yes


"&DAY(B14-A14)&" Days"

=B15-A15 No

Example Set 3
Formula Accurate?
=+DATEDIF(A19,B19,"Y")&" Years, "&DATEDIF(A19,B19,"ym")&" Months, Yes
"&DATEDIF(A19,B19,"md")&" Days"

=YEAR(DATE(YEAR(B20)-YEAR(A20),MONTH(B20)-MONTH(A20)+1,DAY(B20)-
DAY(A20)+1))-1900&" Years "&IF(MONTH(DATE(YEAR(B20)-
YEAR(A20),MONTH(B20)-MONTH(A20)+1,DAY(B20)-DAY(A20)+1))-
1=0,"",MONTH(DATE(YEAR(B20)-YEAR(A20),MONTH(B20)- Yes
MONTH(A20)+1,DAY(B20)-DAY(A20)+1))-1&" Months
")&IF(DAY(DATE(YEAR(B20)-YEAR(A20),MONTH(B20)-MONTH(A20)+1,DAY(B20)-
DAY(A20)+1))-1=0,"",DAY(DATE(YEAR(B20)-YEAR(A20),MONTH(B20)-
MONTH(A20)+1,DAY(B20)-DAY(A20)+1))-1&" Days")

=TEXT(B21-A21,"YYYY")-1900&" Years "&MONTH(B21-A21)-1&" Months No


"&DAY(B21-A21)&" Days"

=B22-A22 No

You might also like