Excel - How To Calculate Age

How To Calculate Age

Calculating age is very simple, but what is you have thousand of age you want to calculate, doing this one after the other might take a lot of time. In this tutorial I will be showing you how you can calculate age in excel.

  • CALCULATING AGE
  • Step 1 - In the image below, we have the date of birth column and the age column. Create similar data to follow up with this tutorial, you ignore the formatting if you want.
  • calculate-age
  • Step 2 - Now in the Age column, type in the =DATEIF(. The DATEIF function is used to calculate the number of days, months or years between two dates.
  • calculate-age
  • Step 3 - Next, type in the cell address containing the date of birth.
  • calculate-age
  • Step 4 - Add a comma sign as shown in the image below.
  • calculate-age
  • Step 5 - Type in the TODAY() function. This function is used to get the current date at that particular time.
  • calculate-age
  • Step 6 - Add another comma sign as shown in the image below.
  • calculate-age
  • Step 7 - Lastly in double quotation marks type in Y as shown in the image below. Y is the number of years, and it will be the output from the formula.
  • calculate-age
  • Step 8 - Add the closing DATEIF parenthesis and press Enter on your keyboard.
  • calculate-age
  • Step 9 - After pressing Enter on your keyboard the age will be displayed successfully.
  • calculate-age
  • Step 10 - Now instead of typing the same formula for the rest, to calculate the age, we are going to flash fill them.
    Simply move you mouse pointer to the bottom right edge of the first cell. You will notice you mouse pointer will change to a plus icon.
  • calculate-age
  • Step 11 - Immediately you mouse pointer changes to a plus icon, click and drag down to the rest of the cells as shown in the image below.
  • calculate-age
  • Step 12 - The age will display in all the other cells accordingly.
  • calculate-age
  • Step 13 - This is very useful when you have about hundreds of data that you want to perform this operation for.
  • calculate-age
    tips
    TIP:

    So, for quick memorization, DATEIF function has three parameters, first takes the date of birth, second takes the current date and the third is the output in years, months of days (D, M or Y).

ADVERTISEMENTS

LEARNING IS A CONTINOUS PROCESS - PRACTICE MAKES PERFECT