EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Certification Courses
  • 120+ Courses All in One Bundle
  • Login
Home Excel Excel Resources Excel Tips Calculate Age in Excel
Secondary Sidebar
Excel Functions
  • Excel Tips
    • Recover Document in Excel
    • Excel Shortcut to Select Row
    • Excel Header Row
    • Excel Insert Button
    • Excel Translate
    • Budget in Excel
    • KPI Dashboard in Excel
    • Blank Invoice Excel Template
    • Write Formula in Excel
    • Auditing Tools in Excel
    • Autofit Row Height in Excel
    • Formatting Text in Excel
    • Add Rows in Excel Shortcut
    • Divide Cell in Excel
    • Compare Two Columns in Excel for Matches
    • Excel Troubleshooting
    • Unprotect Excel Workbook
    • Subtract Date in Excel
    • Carriage Return in Excel
    • Negative Numbers in Excel
    • Worksheets in Excel
    • Excel Match Multiple Criteria
    • Exponential Moving Average Formula
    • Sentence Case in Excel
    • Excel Reverse Order
    • Excel Timesheet Template
    • Weighted Average in Excel
    • CTRL Shift-Enter in Excel
    • Excel Expense Tracker
    • INDEX MATCH Function in Excel
    • Percent Change in Excel
    • Drag and Drop in Excel
    • Shade Alternate Rows in Excel
    • Excel Database Template
    • Inverse Matrix in Excel
    • New Line in Excel Cell
    • Format Cells in Excel
    • Excel Text with Formula
    • Project Management Template in Excel
    • Vlookup vs Index Match
    • Embedded in Excel
    • Count Colored Cells in Excel
    • Excel Hacks
    • Column Header in Excel
    • Database Function in Excel
    • Excel Spell Check
    • Linear Interpolation in Excel
    • Convert Excel to CSV
    • Excel Not Responding
    • Delta Symbol in Excel
    • Excel Mortgage Calculator
    • Excel Show Formula
    • Break Links in Excel
    • VLOOKUP Examples in Excel
    • Alternate Row Color Excel
    • Checklist in Excel
    • Microsoft Office Tips
    • Excel vs Access
    • Excel Change Case
    • Count Characters in Excel
    • Formula Bar in Excel
    • Invoice Template in Excel
    • Find and Replace in Excel
    • PowerPivot in Excel
    • Wildcard in Excel
    • Line Break in Excel
    • NULL in Excel
    • Text Formula in Excel
    • Family Tree in Excel
    • Insert Calendar in Excel
    • Page Setup in Excel
    • Search For Text in Excel
    • Switching Columns in Excel
    • 3D Cell Reference in Excel
    • Roadmap Template in Excel
    • Cell References in Excel
    • Excel Automation
    • Matching Columns in Excel
    • Evaluate Formula in Excel
    • How to Find Mean in Excel
    • How to Add Cells in Excel
    • Project Timeline in Excel
    • TODAY Formula in Excel
    • Poisson Distribution in Excel
    • YEAR Formula in Excel
    • REPLACE Formula in Excel
    • Create Spreadsheet in Excel
    • SEARCH Formula in Excel
    • HYPERLINK Formula in Excel
    • Pivot Table with Multiple Sheets
    • COLUMNS Formula in Excel
    • DAY Formula in Excel
    • RIGHT Formula in Excel
    • INDIRECT Formula in Excel
    • Excel IRR Formula
    • Pivot Table Sort
    • OR Formula in Excel
    • Pivot Table Formula in Excel
    • How to Edit Drop Down List in Excel?
    • WEEKDAY Formula in Excel
    • Chart Wizard in Excel
    • Time Difference in Excel
    • Lookup Table in Excel
    • SUBTOTAL Formula in Excel
    • LOOKUP Formula in Excel
    • Themes in Excel
    • Group Worksheets in Excel
    • Excel ISNUMBER Formula
    • 3D Maps in Excel
    • VLOOKUP Tutorial in Excel
    • Moving Columns in Excel
    • Grouping Columns in Excel
    • Excel Formula of Percentage
    • Excel Leading Zeros
    • Timesheet in Excel
    • Nested IF Formula in Excel
    • SUMIF Formula in Excel
    • Concatenation in Excel
    • Excel Insert Page Break
    • LEN Formula in Excel
    • Insert Comment in Excel
    • Excel Print
    • Fractions in Excel
    • Excel Add a Column
    • Borders in Excel
    • Excel Sum by Color
    • Excel vs Google Sheets
    • Calculate Percentage Increase in Excel
    • Excel Format Phone Numbers
    • Excel Search Box
    • Excel vs CSV
    • Excel vs Numbers
    • Excel Concatenate Date
    • Excel Bullet Points
    • Calculate Compound Interest in Excel
    • Find External Links in Excel
    • Excel Comma Style
    • Excel Remove Leading Spaces
    • Combine First and Last Name in Excel
    • How to Calculate Ratio in Excel
    • SUMPRODUCT Function with Multiple Criteria
    • Create Excel Template
    • Excel Greater than or Equal
    • Excel Keyboard Shortcuts
    • Excel Row vs Excel Column
    • Excel Operators
    • Excel Text Compare
    • Excel Uppercase Function
    • Excel Auto Numbering
    • Watermark in Excel
    • Excel Delete Row Shortcut
    • Excel Word Count
    • Row Count in Excel
    • Excel Grade Formula
    • Excel Percentage Difference
    • Excel Rows and Columns
    • Excel Group
    • Excel Move Columns
    • Excel Row Height
    • Excel Sparklines
    • Excel Drawing a line
    • Multiple IFS in Excel
    • Excel Strikethrough
    • Numbering in Excel
    • Share Excel Workbook
    • Excel Shortcut For Merge Cells
    • Excel OneDrive
    • Excel Track changes
    • Excel Hide Formula
    • Excel Filter Shortcuts
    • Excel 3D Reference
    • Protect Excel Workbook
    • Excel Moving Averages
    • Excel Row Limit
    • Excel Absolute Value
    • Excel Print Area
    • Excel Format Painter
    • Excel Separate text
    • Excel Autofit
    • Excel Columns to Rows
    • Excel Paste Shortcut Option
    • Excel Rows to Columns
    • Excel Insert Row Shortcut
    • Excel Extensions
    • Excel Unmerge Cells
    • Divide in Excel Formula
    • Excel Compare Two Columns
    • Not Equal To Excel
    • Excel Remove Duplicates
    • Excel Remove Spaces
    • Excel Calculate Age
    • Copy Excel Sheet
    • Excel Conditional Formatting Based on Another Cell Value
    • Excel Cell Reference
    • Excel Split Cell
    • Excel Circular Reference
    • Highlight Every Other Row in Excel
    • Errors in Excel
    • Excel Delete Pivot Table
    • Excel Pivot Table
    • Subtraction in Excel
    • Count Unique Values in Excel
    • Excel Highlight Duplicates
    • Excel Data Formatting
    • Random Numbers in Excel
    • Basic Excel Formulas
    • Page Numbers in Excel
    • Excel CAGR Formula
    • Excel Combine cells
    • IFERROR with VLOOKUP in Excel
    • Column Sort in Excel
    • Print Comments in Excel
    • Cheat Sheet of Excel Formulas
    • Remove Hyperlinks in Excel
    • Excel Drop Down List
    • Remove (Delete) Blank Rows in Excel
    • Relative Reference in Excel
    • Subscript in Excel
    • Superscript in Excel
    • Excel Insert Multiple Rows
    • Excel Absolute Reference
    • Unhide Columns in Excel
  • Excel Functions (12+)
  • Excel Tools (114+)
  • Financial Functions in Excel (17+)
  • Logical Functions in Excel (14+)
  • Lookup and Reference Functions in Excel (35+)
  • Maths Function in Excel (47+)
  • TEXT and String Functions in Excel (26+)
  • Date and Time Function in Excel (24+)
  • Statistical Functions in Excel (59+)
  • Information Functions in Excel (4+)
  • Excel Charts (56+)
  • Workplace Productivity (4+)
  • Microsoft Office Tools (15+)
  • Excel Formula and Functions (22+)
  • MS Excel Shortcuts (4+)
Excel Functions Courses
  • EXCEL COURSE
  • Online Excel Data Analysis Course
  • Excel for Finance Course

Calculate Age in Excel

By Karthikeyan SubburamanKarthikeyan Subburaman

calculate age in excel

Calculate Age in Excel (Table of Contents)

  • Introduction to Calculate Age in Excel
  • How to Calculate Age in Excel?
  • How to Use the DATEDIF function in Excel?

Introduction to Calculate Age in Excel

To calculate Age in Excel, we must have the Date of Birth of that person. We can calculate the age in excel with the help of the TODAY function. For this, select the cell which has the Date Of Birth, and subtract this Date of Birth from today’s date, which we can get using the TODAY function. This would give us the number of days from the selected Date of birth to till date. And then divide that by 365, which is the actual number of days in a Year. This would give the Age of that person to date.

How to Calculate Age in Excel?

Let’s find the steps to calculate age in excel with some examples.

You can download this Calculate Age Excel Template here – Calculate Age Excel Template

Example #1 – Calculate Age in Excel

In excel, we can calculate the age of a person if we know the person’s date of birth and the current date. Consider the below example where we have the current date and date of birth.

Start Your Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

calculate age in excel example 1.1

Here we can use the simple logical formula to find out the Age by using below formula.

All in One Excel VBA Bundle(120+ Courses, 30+ Projects)
Basic ExcelAdvanced ExcelVBA & MacrosExcel Dashboards
Pivot TablesStatistical FunctionsFinancial FunctionsCharts & Graphs
Price
View Courses
120+ Online Courses | 30+ Projects | 500+ Hours | Verifiable Certificates | Lifetime Access
4.9 (64,813 ratings)

calculate age in excel example 1.2

= (B1-B2)/365.25 gives you the result as shown below.

calculate age in excel example 1.3

Here we have just subtracted the current date- date of birth/365.25 why we have used 365.25 because, in order to get an account for a leap year which appears every 4 years, it will not give us the appropriate result because we got an age output in decimal places, so in order to round off the value, we can use the “ROUNDDOWN function which is normally used to round down the decimal places.

ROUNDDOWN function Formula in Excel

=ROUNDDOWN (Number, num_digit) where the number is used to round down the number, and num_digit is used to round down the number to many decimal places.

rounddown formula

=ROUNDDOWN((B1-B2)/362.25,0) will give the roundup values shown in the below result.

calculate age in excel example 1.4

Result:

In the below result, we can see the difference. After applying the round-down function, we got the exact output of 37; before that, we got the same age output as 37.44

calculate age in excel example 1.5

Now we will see how to calculate Age in excel by using the built-in function.

The DATEDIF function is the built-in function in excel where it returns the difference between the two date values in years, months, or days.

DATEDIF function Formula in Excel:

DATEIF function formula

Arguments & Parameters to Calculate Age in Excel

  • Start date: – Represents the start date where we will enter a text string.
  • End date: – Represents the end date where we will enter a text string.
  • Unit: – This will find the time unit based on the specified text string such as Years, Months, and dates. i.e.( Y,M,D,MD,YM,YD) in double-quotes.
  • Y:-This Year’s unit will find the number of completed years.
  • M:-This Month’s Unit will find the number of completed months.
  • D: – This Day Unit will find the number of Completed days.
  • MD: – This Month Day Unit will find the difference in days, but it will ignore months and years.
  • YM:-This Year Month Unit will find the difference in months, but it will ignore days and years.
  • YD: – This Year Date Unit will find the difference in Days, but it will ignore the years.

Example #2 – Calculating Using the DATEDIF Function

In Microsoft, excel DATEDIF is a compatibility function where we need to use the formula correctly. Like other functions, the DATEDIF function will not help if we apply the wrong data, and also, it will not show the arguments while using the function, which is shown below.

DATEIF function formula 1

In this example, we will see how to calculate age using the DATEDIF function. In order to calculate the age of any specific person, we need two things, the date of birth and the current date, so that we can apply the DATEDIF function by following the below steps.

Consider the below example where it has an employee name, designation, date of birth, and current date, and we have also created three new columns Year, Month, and Day to get the output.

calculate age in excel example 2.1

First, we will see how to calculate the age excel of the employee using the DATEDIF function.

  • First, click on cell E2, which is nothing but the Year column.

calculate age in excel example 2.2

  • Now apply the DATEDIF function in excel as shown below=DATEDIF(C2, D2, “Y”), C2 is nothing but the date of birth of the employee, D2 is the current date of the year, “Y” which will return the total completed years.

calculate age in excel example 2.3

  • Let’s see how we have applied the formula in excel, which is shown below. Here in the above screenshot, we can see the DATEDIF function calculated with the “Age” of an employee as 40.

calculate age in excel example 2.4

  • Now drag down the formulas to all the cells so that we will come to know the age of all employees, which is shown as a result in the below screenshot.

calculate age in excel example 2.5

Example #3 – Calculating the Month of the Employee

Now we are going to use the same DATEDIF function to find out the month of the employee, i.e. on which month exactly he/she was born. To find out the month of an employee, follow the below steps follows.

  • First, click on the F2 cell, which is nothing but the Month Column.

calculate age in excel example 3

  • Now apply the DATEDIF function in excel as shown below=DATEDIF(C2, D2, “YM”), C2 is nothing but the date of birth of the employee, D2 is the current date of the year, “YM” which will return the difference in months.

calculate age in excel example 3.2

  • Once the formula has been applied, it will be displayed as follows. Here in the above screenshot, we can see the DATEDIF function calculated with the difference of “month” of the first employee as 7.

calculate age in excel example 3.3

  • Now drag down the formulas to all the cells so that we will come to know the month of all employees, which is shown as a result in the below screenshot.

calculate age in excel example 3.4

Example #4 – Calculating Employee day

Now we are going to calculate on which day an employee has been born exactly by using the same DATEDIF function by following the below steps.

  • First, click on the G2 cell, which is nothing but the Day Column.

calculate age in excel example 4

  • Now apply the DATEDIF function in excel as shown below=DATEDIF(C2, D2,” MD”), C2 is nothing but the date of birth of the employee, D2 is the current date of the year, “MD” which will return the difference in days.

Using DATEDIF function example 4.2

  • Once the formula has been applied, it will be displayed as follows. Here in the above screenshot, we can see the DATEDIF function calculated with the difference of “days” of the first employee as twenty-three “23”.

CA in excel example 4.3

  • Now drag down the formulas to all the cells so that we will come to know the days of all employees, which is shown as a result in the below screenshot.

CA in excel example 4.4

Henceforth we have calculated the age of all the employees by calculating their Age, Month, and Day.

Things to Remember About Calculate Age in Excel

  • The DATEDIF function will not help like other functions because while using the DATEDIF function, we should use the formula in the correct manner.
  • We cannot copy the DATEDIF function to another cell, or else Excel will throw a NUM error.

Recommended Articles

This has been a guide to Calculate Age in Excel. Here we discuss Calculate Age in Excel and how to use Calculate Age in Excel along with practical examples and a downloadable excel template. You can also go through our other suggested articles –

  1. Data Table in Excel
  2. Excel Combo Box
  3. Scrollbar in Excel
  4. Divide Cell in Excel
Popular Course in this category
Excel Training (23 Courses, 9+ Projects)
  23 Online Courses |  9 Hands-on Projects |  110+ Hours |  Verifiable Certificate of Completion
4.9
Price

View Course

Related Courses

Excel Data Analysis Training (17 Courses, 8+ Projects)4.9
Excel for Finance Training (18 Courses, 7+ Projects)4.8
4 Shares
Share
Tweet
Share
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Excel Charts
  • Excel Tips
  • All Tutorials
Certification Courses
  • All Courses
  • Excel VBA Course - All in One Bundle
  • VBA Course
  • Excel Data Analysis Course
  • Excel for Marketing Course
  • Excel for Finance Course
  • Excel for HR Training

ISO 10004:2018 & ISO 9001:2015 Certified

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

Download Calculate Age Excel Template

EDUCBA

Download Calculate Age Excel Template

EDUCBA

डाउनलोड Calculate Age Excel Template

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more