We often need to find the age of an individual for different purposes. It is often required for official and personal purposes. The calculations to calculate age can be tricky. However, Excel allows us to get age from birthday very easily. We can use the INT, YEARFRAC and TODAY function in Excel to calculate age from birthday. In this tutorial, we will learn how to get age from birthday in Excel.
Figure 1. Example of How to Get Age from Birthday
How this Formula Works
Here, you just need to provide the date of birth inside the YEARFRAC function. The second argument is the TODAY function. This also ensures the age is correct every time the spreadsheet is opened.
YEARFRAC takes two dates and returns a decimal number. This represents the fraction of a year between them. Excel uses full days between two dates to calculate the fraction of a year as a decimal. As all dates are serial numbers, this is the default for Excel. Afterwards, the INT function rounds this fraction number to an integer,and returns it.
Setting Up Data
The following uses a sample people information database. Column A and B has the name and birthdates of some people.
Figure 2. The Sample Data
To calculate the ages from the birthdates, we need to
- Go to cell C2.
- Assign the formula
- Press Enter.
Figure 3. Applying the Formula
- Drag the formula using the fill handle from cells C2 to C6 to copy the formula to the entire column.
This will show the ages calculated from the birthdays in column C.
Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.