Google Sheets, like other spreadsheet applications, doesn't have a built-in function to automatically calculate age. However, you can create a custom formula to determine the age based on a specific date, such as birthdate. This article will guide you through creating a formula for age in Google Sheets.

The formula to calculate age in Google Sheets isn't as straightforward as other spreadsheets like Excel, which has a dedicatedages function. Instead, Google Sheets rely on DATE, TODAY, and YEAR functions. Here's how you can build it:

Calculating Age in Google Sheets
To calculate age, you'll need the birthdate and the current date. The formula will subtract the birthdate from the current date and then calculate the age using years. Here's the breakdown:

The current date is obtained using the TODAY() function. The birthdate (let's assume it's in cell B2) is entered as an actual date in the sheet. Now, let's create the formula step by step.
Step 1: Understanding the Formula Structure

The formula for age in Google Sheets is quite simple, as shown below:
=(TODAY() - B2) / 365
The formula subtracts the birthdate from the current date and then divides by 365 to get the age in years.
Step 2: Applying the Formula to a Cell

Now, place this formula in a cell where you want to display the age. For example, if the birthdate is in cell B2, place the formula in cell C2:
= (TODAY() - B2) / 365
Press Enter, and the cell will display the person's age in years. Here's how it looks:
| B2 | C2 |
| 01/01/1990 | 32.41 |

Handling Birthdates That Aren't in the Format (YYYMMDD)
The formula above works perfectly for birthdates entered in the YYYYMMDD format. However, if your dates are in a different format or are strings, you'll need to use the DATEVALUE() function before using TODAY(). Here's how:






Step 1: Using DATEVALUE()
Assuming your birthdate is in cell B2 as text (e.g., "01/01/1990"), update the formula as follows:
= (TODAY() - DATEVALUE(B2)) / 365
This will convert the text to a date before performing the subtraction, ensuring the formula works correctly.
Step 2: Enter the Formula in a Cell
Now, place this updated formula in a cell where you want to display the age, e.g., cell C2:
= (TODAY() - DATEVALUE(B2)) / 365
Press Enter, and the cell will display the person's age in years.
Google Sheets' formula for age might seem complex at first, but it's quite flexible and can accommodate various date formats. As you work with more complex data, you can build upon these formulas to suit your needs.
Don't forget that this age calculation only works if the birthday hasn't occurred in the current year. If you need to account for partial years, you might need to use a more complex formula or a script.
In the ever-evolving world of Google Sheets, understanding how to calculate age is a crucial skill. Whether you're managing a team, tracking student ages, or planning family reunions, this formula will help you stay organized and informed.