|






| |
Microsoft Excel
Formula to Quickly Calculate Age
Description
Have you ever needed your Microsoft Excel worksheet to
calculate a person's age? The DATEDIF function will quickly calculate the
age as of the current date. You can have the function display the age in
years, months or days. Try the following in a blank worksheet: Microsoft
Excel Worksheet
-
In cell A1, type your birth date
In cell B1, type =DATEDIF(A1,TODAY(),"y") and
then press <Enter>
-
Formula Arguments
-
A1 is the location of the cell that contains the
date
-
TODAY() tells Excel to calculate the age as of the
current date
-
"y" will calculate the age in years
-
Formula Format
-
Commas are used to separate the three parts of the formula
-
Quotes must surround the y, m, or d

Example of DATEDIF Function
|