
Listen to this story
A professional Excel Tutorial website!
Walkthroughs, tutorials, guides, and tips. This story will teach you how to do something new or how to do something better.
Calculate Age from Date of Birth: Calculating our own age is quite confusing in most of the times, You can actually use the Excel to calculate the Age from your birthday using essential functions such as DATE, TODAY, YEAR, DAY and MONTH. Combining these functions to form a formula which can help you to calculate your own age or friends age from the DOB itself. You can use the formula to manage your employee records, student details, or personal tracking. Let us get into the tutorial.
By combining these functions, we can accurately calculate a person’s age based on their date of birth.
The below formula is the basic one to calculate age from date if birth in excel.
=YEAR(TODAY()) - YEAR(A1)
The above formula will find the number of completed years between the birth date and today’s date
Simple formula to calculate Age from birthday using today and year function
As you can see in the above image, the simple formula returned my age from the given date of birth! But the only catch is, the formula returned the total completed years from the birth date and today’s date! To calculate the exact age “Birthdays That Haven’t Occurred Yet in the current year” follow the next formula.
To accurately determine the age, considering whether the birthday has passed in the current year, use this formula in Cell:
=YEAR(TODAY()) - YEAR(A1) - IF(DATE(YEAR(TODAY()), MONTH(A1), DAY(A1)) > TODAY(), 1, 0)
The above one is the common formula, adjust the cell values to get the exact age from the given birthday.
Calculating Exact Age from the Birthday
From the above image, the second formula gives you the more accurate age rather than the 1st formula. The 2nd formula will determine whether the birthday has passed in the current year or not and the returns the output value. For the given example year, the birthday has not passed and so the formula returns the value 29 as the final age.
The below formula will returns the age with the detailed result.
=YEAR(TODAY()) - YEAR(A1) & " Years, " & MONTH(TODAY()) - MONTH(A1) & " Months, " & DAY(TODAY()) - DAY(A1) & " Days"
The above one is the general formula, modify the cell value to get the age from the date of birth along with years, months and days.
Formula to display age along with the detailed results.
From the above image, you can see the cell C7 displays the final output value of the formula, the final age has been displayed with the total years, months and days.
=DATEDIF(B6, TODAY(), "Y")
=INT(YEARFRAC(B8, TODAY(), 1))
=ROUNDDOWN(YEARFRAC(B9, TODAY(), 1), 0)
=INT(DATEDIF(B10, TODAY(), "Y") + DATEDIF(B10, TODAY(), "YM")/12)
=YEAR(TODAY()) - YEAR(B11) - IF(EOMONTH(B11, 0) > TODAY(), 1, 0)
Other functions to calculate age from formula
That’s it.