Site icon Neotech Navigators

How to Use the DATEDIF and TODAY Functions in Google Sheets with Example

f you’ve ever needed to calculate someone’s age or figure out the difference between two dates, Google Sheets makes it incredibly easy with the DATEDIF and TODAY functions. These two functions, when combined, can help you dynamically calculate ages, durations, or any other date-based differences without manually updating the values. In this blog post, we’ll guide you through using these functions step by step with a practical example.

What are the DATEDIF and TODAY Functions in Google Sheets?

Before we jump into the example, let’s quickly break down what these two functions do.

When used together, you can easily calculate the age of a person or the duration between any two dates.

Example Dataset

Here’s the sample dataset that we’ll use in our example. We have a list of people with their dates of birth, and we want to calculate their current age.

DATEDIF and TODAY Functions

Using the DATEDIF and TODAY Functions to Calculate Age

Now, let’s write the formula to calculate the current age based on each person’s date of birth. We’ll use the following formula:

=DATEDIF(C4, TODAY(), "Y")

Let’s break this down:

In essence, this formula calculates how many full years have passed between the date of birth in cell C4 and today’s date.

Formula Output

After applying the formula to each row, here’s the output we get for the ages:

As you can see, the formula accurately calculates the current age for each person based on today’s date.

DATEDIF and TODAY Functions

Why Use the DATEDIF and TODAY Functions?

There are many reasons why these functions are useful for your everyday calculations:

Final Thoughts

The DATEDIF and TODAY functions in Google Sheets make it easy to calculate ages or any time-based differences with little effort. Whether you’re managing a list of birthdays or tracking durations between dates, this formula will streamline your workflow.

Visit our YouTube channel to learn step-by-step video tutorials

Youtube.com/@NeotechNavigators

Click here to Make the copy of this Template

 

Exit mobile version