Menu
×
   ❮   
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP C C++ C# AWS W3.CSS HOW TO BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS DSA TYPESCRIPT ANGULAR ANGULARJS GIT POSTGRESQL MONGODB ASP AI R GO KOTLIN SWIFT SASS VUE GEN AI SCIPY CYBERSECURITY DATA SCIENCE INTRO TO PROGRAMMING HTML & CSS BASH RUST TOOLS

Excel Tutorial

Excel HOME Excel Introduction Excel Get Started Excel Overview Excel Syntax Excel Ranges Excel Fill Excel Move Cells Excel Add Cells Excel Delete Cells Excel Undo Redo Excel Formulas Excel Relative Reference Excel Absolute Reference Excel Arithmetic Operators Excel Parentheses Excel Functions

Excel Formatting

Excel Formatting Excel Format Painter Excel Format Colors Excel Format Fonts Excel Format Borders Excel Format Numbers Excel Format Grids Excel Format Settings

Excel Data Analysis

Excel Sort Excel Filter Excel Tables Excel Conditional Format Excel Highlight Cell Rules Excel Top Bottom Rules Excel Data Bars Excel Color Scales Excel Icon Sets Excel Manage Rules (CF) Excel Charts

Excel PivotTables

Excel PivotTable Intro Excel Create PivotTable Excel PivotTable Values Excel PivotTable Filter Excel PivotTable Group Excel Calculated Field Excel PivotChart

Excel Case

Case: Poke Mart Case: Poke Mart, Styling

Excel Functions

AND AVERAGE AVERAGEIF AVERAGEIFS CONCAT COUNT COUNTA COUNTBLANK COUNTIF COUNTIFS DATEDIF FILTER HLOOKUP IF IFERROR IFS INDEX INDEX MATCH LEFT LEN LOWER MATCH MAX MEDIAN MID MIN MODE NETWORKDAYS NPV OR PROPER RAND RIGHT ROUND SORT STDEV.P STDEV.S SUBSTITUTE SUM SUMIF SUMIFS SUMPRODUCT TEXTJOIN TODAY TRIM UNIQUE UPPER VLOOKUP XLOOKUP XOR

Excel How To

Convert Time to Seconds Difference Between Times NPV (Net Present Value) Remove Duplicates

Excel Cert

Excel Certificate

Excel Examples

Excel Exercises Excel Syllabus Excel Study Plan Excel Training

Excel References

Excel Keyboard Shortcuts


Excel TODAY Function


Share

TODAY Function

The TODAY function is a premade function in Excel, which returns the current date.

It is typed =TODAY and has no parts:

=TODAY()

The parentheses are needed, even though there is nothing inside them.

Note: TODAY changes every day. Excel updates the date each time the workbook is opened or recalculated.

The results on this page are shown if today is 2026-09-28. Each example also has a formula with a fixed date, which gives the same results on any day.

Excel stores every date as a number, called a serial number. 1900-01-01 is number 1, 1900-01-02 is number 2, and so on.

2026-09-28 is number 46293. A1 and B1 have the same value. A1 is formatted as a date, and B1 is formatted as General:

AB
12026-09-2846293

Because dates are numbers, you can subtract one date from another. The result is the number of days between them.

Tip: To type today's date as a fixed value that does not change, press Ctrl+; (semicolon).

How to use the TODAY function to count the days since a date:

  1. Select a cell (D2)
  2. Type =TODAY()
  3. Type (-)
  4. Select the cell with the date (C2)
  5. Hit enter

Let's have a look at an example!

These are some recent orders from the Poke Mart (example data). Copy them and paste them into cell A1:

Example data

ABC
1TrainerItemOrder Date
2AshPoke Ball2026-09-21
3MistySuper Potion2026-09-14
4BrockGreat Ball2026-08-30
5DawnPotion2026-07-15
6GaryUltra Ball2026-01-02

Note: Excel may show the dates in another format, like 9/21/2026, depending on your settings. The results are the same.

Type Days Since in D1. Use TODAY to count the days since each order. Type the formula in D2 and fill it down to D6:

ABCD
1TrainerItemOrder DateDays Since
2AshPoke Ball2026-09-217
3MistySuper Potion2026-09-1414
4BrockGreat Ball2026-08-3029
5DawnPotion2026-07-1575
6GaryUltra Ball2026-01-02269
=TODAY()-C2

If today is 2026-09-28, Ash ordered 7 days ago, and Gary ordered 269 days ago.

To get exactly these results on any day, use a fixed date instead of TODAY():

=DATE(2026,9,28)-C2

The DATE function makes a date from a year, a month and a day.

Note: If the results look like dates, change the format of column D to General or Number. See Number Formats.



Days Until a Date

Subtract TODAY from a date in the future to count the days that are left.

Say the next Pokemon League starts on 2026-12-01. Type League Starts in F1 and the date in G1. Then type Days Left in F2, and this formula in G2:

FG
1League Starts2026-12-01
2Days Left64
=G1-TODAY()

If today is 2026-09-28, there are 64 days left. The fixed-date formula gives the same result on any day:

=G1-DATE(2026,9,28)

Calculate an Age

To calculate an age in whole years, use TODAY together with the DATEDIF function.

This table has the birthdays of some trainers (example data). Copy it and paste it into cell A1 of a new sheet:

Example data

AB
1TrainerBirthday
2Ash2016-05-22
3Misty2014-10-03
4Brock2011-09-28
5Dawn2012-09-29
6Gary2016-01-15

Type Age in C1. Type this formula in C2 and fill it down to C6:

ABC
1TrainerBirthdayAge
2Ash2016-05-2210
3Misty2014-10-0311
4Brock2011-09-2815
5Dawn2012-09-2913
6Gary2016-01-1510
=DATEDIF(B2, TODAY(), "Y")

"Y" tells DATEDIF to count complete years. If today is 2026-09-28, Brock turns 15 today. Dawn turns 14 tomorrow, so she is still 13.

The fixed-date formula gives the same ages on any day:

=DATEDIF(B2, DATE(2026,9,28), "Y")

Note: You may see (TODAY()-B2)/365 used to calculate ages. It is not exact, because some years have 366 days. For Dawn, it gives a little more than 14, even though her 14th birthday is tomorrow.


The NOW Function

The NOW function works like TODAY, but it returns the current date and time. It is typed =NOW().

The time is stored as the decimal part of the number. If it is 18:00 on 2026-09-28, NOW returns 46293.75, because 18:00 is 0.75 of a day. Excel shows it as a date and a time.

Like TODAY, NOW changes every time Excel recalculates. To calculate with times, see How to Find the Difference Between Two Times.


See Also

DATEDIF counts the years, months or days between two dates.

NETWORKDAYS counts the working days between two dates. For example, =NETWORKDAYS(TODAY(), C2) counts the working days from today until the date in C2.

To highlight dates like yesterday, today or next week, use the A Date Occurring rule in Conditional Formatting.


Free account

Track your progress

XP earned 0 Day streak 0 Spaces 0 League —

New

Learn in Adventure Mode W3Schools Adventure App

Coding fundamentals as bite-sized lessons and challenges.

×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookies and privacy policy.

Copyright 1999-2026 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.