How to Use the TODAY Function in Excel

How to Use the TODAY Function in Excel

How to Use the TODAY Function in Excel GA S REGULAR Menu Lifewire Tech for Humans Newsletter! Search Close GO Software & Apps > MS Office

How to Use the TODAY Function in Excel

Keep your worksheets continuously up to date

By Ted French Ted French Writer Former Lifewire writer Ted French is a Microsoft Certified Professional who teaches and writes about spreadsheets and spreadsheet programs. lifewire's editorial guidelines Updated on March 26, 2020 Tweet Share Email Tweet Share Email

In This Article

Expand Jump to a Section TODAY Function Syntax and Arguments Use TODAY in Excel Calculations Dates as Numbers Troubleshoot Date Recalculation Problems Fix Date Format Issues The TODAY function adds the current date to a worksheet and in date calculations. The function is one of Excel's volatile functions, which means that it updates itself every time a worksheet containing the function is recalculated. Information in this article applies to Excel 2019, 2016, 2013, 2010, 2007; Excel for Microsoft 365, Excel Online, Excel for Mac, Excel for iPad, Excel for iPhone, and Excel for Android.

TODAY Function Syntax and Arguments

A function's syntax refers to the layout of the function and includes the function's name, brackets, comma separators, and arguments. The syntax for the TODAY function is: =TODAY() TODAY uses the computer's serial date, which stores the current date and time, as a number, as an argument. It obtains this information on the current date by reading the computer's clock. There are two options to enter the TODAY function into an Excel worksheet: Type the complete function into a worksheet cell. Enter the function using the TODAY function dialog box. Since the TODAY function does not have any arguments that can be entered manually, it's just as easy to type the function as it is to use the dialog box. Each time a worksheet is opened, the date changes unless automatic recalculation is turned off. To prevent the date from changing each time a worksheet using automatic recalculation is opened, use a keyboard shortcut to enter the current date.

Use TODAY in Excel Calculations

The usefulness of the TODAY function becomes evident when it is used in date calculations, often in conjunction with other Excel date functions. In the image below, rows 3 to 5 extract information related to the current date (such as the current year, month, or day) using the output of the TODAY function in cell A2 as the argument for the YEAR, MONTH, and DAY functions. The TODAY function also calculates the interval between two dates, such as the number of days or years. See rows 6 and 7 of the image above.

Dates as Numbers

The dates in the formulas in rows 6 and 7 can be subtracted from each other because Excel stores dates as numbers. These numbers are formatted as dates in the worksheet to make them easier to use and understand. For example, the date 11/1/2018 (November 1, 2018) in cell A2 has a serial number of 43405 (the number of days since January 1, 1900). October 15, 2015 has a serial number of 42,292. The subtraction formula in cell A6 makes use of these numbers to find the number of days between the two dates, 43,405 - 42,292 = 1113. The formula in cell A6 uses Excel's DATE function to ensure that the date 10/15/2015 is entered and stored as a date value. The example in cell A7 uses the YEAR function to extract the current year from the TODAY function in cell A2 and then subtracts from that 1999 to find the difference between the two years, 2018 - 1999 = 19. Cell A7 was formatted as General before the formula was entered and shows an incorrect result. To fix this problem, see the Fix Date Format Issues section at the end of this article.

Troubleshoot Date Recalculation Problems

If the TODAY function does not update to the current date each time the worksheet is opened, automatic recalculation for the workbook has been turned off. To activate automatic recalculation: Select File > Options. On a Mac, select Excel > Preferences. Select Formulas. On a Mac, select Calculation. In the Calculation Options section, select Automatic to turn on automatic recalculation. Close the dialog box and return to the worksheet.

Fix Date Format Issues

When subtracting two dates in Excel, the result is often displayed as another date rather than a number. This happens if the cell containing the formula was formatted as General before the formula was entered. Because the formula contains dates, Excel changes the cell format to Date. Cell A7 in the example shows a cell that has been formatted as a date. It contains the wrong information. To view the formula result as a number, the cell's format must be set back to General or to Number: Highlight the cell or cells with the incorrect formatting. Right-click on the highlighted cells to open the context menu. Select Format Cells to open the Format Cells dialog box. Select the Number tab to display the formatting options. In the Category section, choose General. Select OK to close the dialog box and return to the worksheet. Was this page helpful? Thanks for letting us know! Get the Latest Tech News Delivered Every Day Subscribe Tell us why! Other Not enough details Hard to understand Submit More from Lifewire How to Use the Excel DATE Function How to Combine the ROUND and SUM Functions in Excel Use Excel's EOMONTH Function to Add or Subtract Months How to Use the Round Function in Excel How to Subtract Dates in Excel How to Round Numbers Down in Excel With the ROUNDDOWN Function How to Use the DAY function in Excel How to Use the Google Spreadsheets AVERAGE Function Use the Excel RIGHT Function to Extract Characters Add the Current Date and Time in Google Sheets How to Count Data in Selected Cells With Excel's COUNTIF Function How to Use the Excel TRUNC Function How to Use Excel's MROUND Function Round up Numbers in Excel With the ROUNDUP Function How to Use the MONTH Formula in Excel How to Use a Dynamic Range in Excel With COUNTIF and INDIRECT Newsletter Sign Up Newsletter Sign Up Newsletter Sign Up Newsletter Sign Up Newsletter Sign Up By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. Cookies Settings Accept All Cookies
Share:
0 comments

Comments (0)

Leave a Comment

Minimum 10 characters required

* All fields are required. Comments are moderated before appearing.

No comments yet. Be the first to comment!

How to Use the TODAY Function in Excel | Trend Now | Trend Now