Excel Functions Tutorials
- Excel Tips
- Excel vs Access
- Excel Rows vs Columns
- Apple Numbers vs Excel
- 3D Reference in Excel
- Absolute Reference in Excel
- Mixed References in Excel
- Excel Reference to Another Sheet
- Array Formulas in Excel
- Arrays in Excel VBA
- Auto Numbering in Excel
- AutoFit in Excel
- AutoCorrect in Excel
- AutoSave in Excel
- AutoRecover in Excel
- Bullet Points in Excel
- Break Links in Excel
- Barcode in Excel
- Change Case in Excel
- CAGR Formula in Excel
- Calculate Age in Excel
- Calculate Percentage in Excel Formula
- Cell Reference in Excel
- Checklist in Excel
- Circular Reference in Excel
- Column Sort in Excel
- Column Lock in Excel
- Move Columns in Excel
- Custom List in Excel
- Consolidate in Excel
- Combine Cells in Excel
- Compare Two Columns in Excel
- Compare and Match Columns in Excel
- Compound Interest Formula in Excel
- Convert Columns to Rows in Excel
- Convert Date to Text in Excel
- Convert Numbers to Text in Excel
- Convert Text to Numbers in Excel
- Convert Excel to CSV
- Count Characters in Excel
- Count Rows in Excel
- Count Unique Values in Excel
- Countif not Blank in Excel
- Create Templates in Excel
- Family Tree in Excel Template
- Custom Number Format in Excel
- Delete Row Shortcut in Excel
- Divide in Excel Formula
- Drop Down List in Excel
- Dynamic Tables in Excel
- Dashboard in Excel
- KPI Dashboard in Excel
- Date to Text in Excel
- Date Format in Excel
- Database in Excel
- Delta Symbol in Excel
- $ Symbol in Excel
- Excel Column to Number
- Edit Drop-Down List in Excel
- Equations in Excel
- Exponents in Excel
- Excel Extensions
- Excel Translate
- Excel Not Responding
- Excel Find and Replace
- Find and Select in Excel
- Excel Subtraction Formula
- Excel Formula for Grade
- Excel as Calculator
- Excel Formula Not Working (Updating)
- Excel Table Styles & Formats
- Excel vs Google Sheets
- External Links in Excel
- Excel Alternate Row Color
- Excel Worksheet Tab
- Extract Number from String Excel
- Evaluate Formula in Excel
- Find Duplicates in Excel
- Finding Links in Excel
- Filter Shortcut in Excel
- Formatting in Excel
- Format Numbers to Millions & Thousands in Excel
- Format Phone Numbers in Excel
- Formula Errors in Excel
- Fractions in Excel
- Frequency Distribution in Excel
- Group in Excel
- Group Worksheets in Excel
- Group Columns in Excel
- Hide Formula in Excel
- Hiding a Column in Excel
- Highlight Every Other Row in Excel
- Highlight Duplicates in Excel
- How to Create a Formula in Excel?
- How to Create an Excel Spreadsheet?
- How to Add Text in Excel Formula?
- How to Create Dashboard in Excel?
- How to Copy Sheet in Excel?
- How to Delete Pivot Table?
- How to Calculate Percentage Increase in Excel?
- How to Multiply in Excel Formula?
- How to Unhide Columns in Excel?
- Insert Date in Excel
- Insert Calendar in Excel
- Import Data into Excel
- Insert Comment in Excel
- Insert Hyperlinks in Excel
- Insert Multiple Rows in Excel
- Insert Row Shortcut in Excel
- Insert New Worksheet in Excel
- Insert (Embed) an Object in Excel
- Insert Image in Excel Cell
- Insert Page Break in Excel
- Line Breaks in Excel
- Linear Interpolation in Excel
- Leading Zeros in Excel
- Last Day of the Month in Excel
- Logical Operators in Excel
- Lookup Table in Excel
- Mortgage Calculator in Excel
- Moving Average in Excel
- Not Equal to in Excel
- Numbering in Excel
- Name Manager in Excel
- Page Numbers in Excel
- Page Break in Excel
- Personal Budget Template in Excel
- Project Management Template in Excel
- Percentage Difference in Excel (Increase / Decrease)
- Pivot Table Calculated Field & Formula
- Pivot Table Sort
- Pivot Table From Multiple Sheets
- Print Comments in Excel
- Print Excel Gridlines
- Print in Excel
- Print Preview in Excel
- Print Area in Excel
- Print Titles in Excel
- Print Labels From Excel
- Project Timeline in Excel
- Protect Sheet in Excel
- Ratio in Excel Formula
- Random Numbers in Excel
- Randomize List in Excel
- Refresh Pivot Table in Excel
- Relative References in Excel
- Remove Blank Rows in Excel
- Remove Duplicates in Excel
- Remove Duplicates from Excel Column
- Remove Hyperlinks in Excel
- Remove Space in Excel
- Remove Leading Spaces in Excel
- Remove Watermark in Excel
- Row Limit in Excel
- Rows and Columns in Excel
- Rows to Columns in Excel
- Row Header in Excel
- Search in Excel
- Search For Text in Excel
- Share an Excel Workbook
- Shortcut to Merge Cells in Excel
- Show Formula in Excel
- Split Cells in Excel
- Separate Text in Excel
- Strikethrough in Excel
- Strikethrough Text in Excel
- Sum by Color in Excel
- Subscript in Excel
- Superscript in Excel
- Themes in Excel
- Timesheet Calculator in Excel
- Top 20 Keyboard Shortcuts in Excel
- Unmerge Cells in Excel
- Uppercase in Excel
- Word Count in Excel
- Word Cloud in Excel
- Watermark in Excel
- Weighted Average in Excel
- Wildcard in Excel
- Financial Functions in Excel (17+)
- Logical Functions in Excel (15+)
- TEXT Functions in Excel (29+)
- Lookup Reference in Excel (44+)
- Maths Functions in Excel (52+)
- Date and Time Function in Excel (22+)
- Statistical Function in Excel (50+)
- Information Functions in Excel (5+)
- Excel Charts (48+)
- Excel Tools (98+)
- VBA (162+)
- Power Bi (35+)
Calculate Age in Excel Sheet (Table of Contents)
- Calculate Age in Excel
- How to Calculate Age in Excel Sheet?
- How to Calculate the Age with help of VBA?
Age Calculation in Excel Sheet
This happens most of the time that we need to know time gap between two dates and calculating this age or time gap between two dates can be complex if this is not done with the help of excel. This complexity of calculation can be changed to fun if we are using the excel functions. This is because in excel the age or the time gap between the two dates can be calculated in the various terms. This means that the age can be calculated in years, months and also in term of days.
Calculating the age without the use of excel can be so tiring as calculating the age is very complex sometimes, especially if the age has to be calculated from the two dates that do not represent a complete month.
Calculating age in excel very simple as this can be done with the help of simple formulas. In excel we do not have a specific function that can calculate the age but we need to use the other date functions of excel to get the age in the desired format. We can get the age in terms of years, months and days also.
How to Calculate Age in Excel Sheet?
Below are the examples to Calculate Age in Excel Sheet.
Example #1- Calculating the Age in Excel in Terms of a Year
To calculate the age in terms of years, we will use the function of “DATEDIF”.
Step 1: Select the cell where the age has to be displayed.
Step 2: Enter the formula of “dated if” as below.
=DATEDIF(Past Date,Current Date,”Y”)
- Past Date: This means the cell that has the beginning Date.
- Current date: This means the cell that has a date that falls after the beginning date.
- “Y”: This means that we need the Age in terms of years only.
After the function has been inserted then we will get the result that shows the Age as completed years only.
- Calculating age including a fraction of years.
Example #2 – Calculating the Age in Excel Terms of Months
If we need the Age in terms of months then we just need to do just a little change in the formula of dated if that we have used in case of calculating the Years.
=datedIf(Past date,Current date,”M”)
Now we have used “M” as we need the Age in terms of months only.
Drag the Formula to get rest of results.
- Calculating age in terms of Months(Including partial months)
Example #3 – Calculating the Age in Excel in terms of days
If we need the Age in terms of Days then we just need to simply use the excel formula below
=datedIf(Past date, Current date,”D”)
Drag the Formula to get rest of results.
Example #4- Calculating the Age in Excel in Year, Months and Days
If we need to know the age in terms of Age, months and years then we just need to use concatenate excel formula along with the DATEDIF formula.
Now if we need to know the Age in “Y/M/D” then we mean that we want the excel to tell us the completed years, months that are above the completed years and at last the days that does not make a complete month.
=CONCATENATE(DATEDIF(A2,B2,”Y”),” years “,DATEDIF(A2,B2,”YM”),” Months and “,DATEDIF(A2,B2,”MD”),”Days”)
In the above formula, we have used
- “Y”: This means that we need years.
- “YM”: This means that we need months that are above the completed years.
- “MD”: This means that we need the days that above the completed months.
Drag the Formula to get rest of results.
Calculating the Age with Help of Excel VBA
If we want to use VBA for calculating the Age then we have to write a code in VBA.
Step 1: Open VBA editor by clicking the keyboard key Alt+F11
Step 2: Define the code.
Here in the code we have defined “age” as variant and given its source as the Cell A1 of the sheet. This A1 cell has the formula that we have used in the above examples.
Step 3: Enter the date in “MM/DD/YY” format.
Step 4: Click on “Show AGE as of date” key.
Step 5: The result will be shown in Msg. box as below.
- In the above examples, we have seen the various examples of how the age can be calculated between two dates. By this time we must be able to understand that age can only be calculated if we have two dates, one of which falls before the second one. In excel terms the dates are not dates but some code that is reflecting the date on the screen. This means that 1/1/2019 might be 1st Jan 2019 to us but to excel this not a date, this is 43466 in its terms.
- Excel uses its own coding for dates and this coding is then formatted for us so that we can see that number as data. Since there is nothing that is called as a date to excel hence excel is able to subtract two dates.
- In the above examples, we have used “DatedIf” formula to calculate the Age between two dates. This function does not appears in the autocomplete function when we start typing the function. This is because this function is hidden to excel and does not come as a suggestion by excel. So this is important that we should know the complete syntax of this function.
Things to Remember
- A datedif function will not appear in the autocomplete option in case we have started typing this function. So this is important that we know the complete syntax of this function.
- The two dates should be in the same format for calculating the age.
- This should be remembered that while using a datedif function, we need to first enter the date that falls prior to the date that we will be entering in the second option of syntax.
- If in case we are getting a date instead of age then we must change the formatting of that cell to number from date.
This has been a guide to Calculate Age in Excel. Here we discuss how to calculate age in excel sheet using DATEDIF Formula, CONCATENATE Formula and also using excel VBA code along with practical examples and a downloadable template. You may learn more about excel from the following articles –