Dates and Times

How to Use the DATE Function in Excel

DATE(year, month, day) builds a real date from three separate numbers. Learn the syntax, how Excel handles overflowing months and days, and common fixes.

On this page
  1. The syntax
  2. Build a date from separate cells
  3. Values that roll over
  4. Patterns built on the same idea
  5. Common problems
  6. Where to go next

The DATE function builds a real date from three numbers: a year, a month and a day. It’s most useful when those parts sit in separate cells, such as one column for the year, one for the month and one for the day. It’s also handy inside another formula when you need a fixed date.

The syntax

=DATE(year, month, day)

For example, =DATE(2026,11,24) returns November 24, 2026. Format the cell as a date, or it may show a number. Enter the year as four digits. Excel treats a year from 0 to 1899 as an offset from 1900, so 26 becomes 1926, and 1899 becomes 3799. That rule catches people who enter a two-digit year or a year in the 1800s.

Build a date from separate cells

Suppose the year is in A2, the month in B2 and the day in C2. Then =DATE(A2,B2,C2) builds the date. Copy the formula down the column to build a date on each row.

Values that roll over

DATE accepts numbers outside the usual ranges and adjusts the result:

  • A month above 12 moves into the following year. =DATE(2026,14,1) returns February 1, 2027.
  • A day above the month’s length moves into the next month. =DATE(2026,2,31) returns March 3, 2026, because February 2026 has 28 days.
  • A day of 0 is the last day of the month before. =DATE(2026,3,0) returns February 28, 2026.

Rollover can be useful, but it isn’t the same as adding months. EDATE stops at the end of the target month, while DATE carries the extra days forward. For January 31, 2026, plus one month, EDATE returns February 28, 2026, and DATE gives March 3. The EDATE method is covered in how to add months to a date in excel.

Patterns built on the same idea

Some common formulas use DATE with a day of 1 or 0:

  • First day of the next month: =DATE(YEAR(A2),MONTH(A2)+1,1)
  • Last day of the current month: =DATE(YEAR(A2),MONTH(A2)+1,0). The EOMONTH version is in last day of month formula in excel.
  • The same date one year earlier: =DATE(YEAR(A2)-1,MONTH(A2),DAY(A2)). For February 29, the result rolls over to March 1 in a year that isn’t a leap year. For example, DATE(2027,2,29) returns March 1, 2027.

Common problems

  • The result shows as a number. The cell is formatted as General or Number. Select the cell, press Ctrl+1, and choose a date format.
  • #VALUE! appears. One of the inputs is text, such as “March” in the month cell. Use the number 3, or convert the text first. The usual checks are in how to fix #value error in excel.
  • The date is more than a century off. Check the year. Years from 0 to 1899 are read as offsets from 1900, as described above.

DATE can’t help with dates before January 1, 1900, because Excel’s dates start there.

Where to go next

Once you can build a date, the next steps are adding months, counting days and finding the end of a month. Counting the days between two dates, for example, uses plain subtraction, which is covered in how to count days between two dates in excel.

The complete guide to dates and times

How to Work With Dates in Excel
Read the guide

Keep exploring

Guides from other topics

All topics →