How to Use the TODAY Function in Excel

The TODAY function in Excel and Google Sheets returns the current date.

Basic Syntax

The syntax for the TODAY function is consistent across both Excel and Google Sheets:

=TODAY()

Example Usage

Below are some practical examples of how the TODAY function can be utilized:

Example 1: Displaying the Current Date

To display the current date in a cell, simply enter the following formula:

=TODAY()

Example 2: Calculating Age

To calculate a person’s age in years from their birthdate, given that their birthdate is in cell A1, use this formula:

Formula Result
=DATEDIF(A1, TODAY(), "Y") Age in years

Example 3: Conditional Formatting Based on Date

The TODAY function can also be integrated with conditional formatting to highlight cells that match the current date. To set this up, follow these steps:

  1. Select the range of cells you wish to format.
  2. Access the Conditional Formatting option.
  3. Opt for “Use a formula to determine which cells to format.”
  4. Enter the formula =A1=TODAY() (assuming A1 is the top-left cell within your selected range).
  5. Choose your desired formatting style.

This overview provides just a few ways the TODAY function can be employed in Excel and Google Sheets to efficiently manage date-related tasks.

More information: https://support.microsoft.com/en-us/office/today-function-5eb3078d-a82c-4736-8930-2f51a028fdd9

Other functions
Returns the serial number of a particular date
Calculates the number of days, months, or years between two dates This function is useful in formulas where you need to calculate an age
Converts a date in the form of text to a serial number
Converts a serial number to a day of the month
Returns the number of days between two dates
Calculates the number of days between two dates based on a 360-day year
Returns the serial number of the date that is the indicated number of months before or after the start date
Returns the serial number of the last day of the month before or after a specified number of months
Converts a serial number to an hour
Returns the number of the ISO week number of the year for a given date
Converts a serial number to a minute
Converts a serial number to a month
Returns the number of whole workdays between two dates
Returns the number of whole workdays between two dates using parameters to indicate which and how many days are weekend days
Returns the serial number of the current date and time
Converts a serial number to a second
Returns the serial number of a particular time
Converts a time in the form of text to a serial number
Converts a serial number to a day of the week
Converts a serial number to a number representing where the week falls numerically with a year
Returns the serial number of the date before or after a specified number of workdays
Returns the serial number of the date before or after a specified number of workdays using parameters to indicate which and how many days are weekend days
Converts a serial number to a year
Returns the year fraction representing the number of whole days between start_date and end_date