fxExcelReps
← All functions 📅 Date & time · Beginner

DATE Build a date from year, month and day.

How to use DATE in Excel

DATE builds a real Excel date from a year, month and day. Excel stores dates as numbers (days since 1 January 1900) — DATE creates that number, so you can calculate with it. It also handles overflow: month 13 becomes January of the next year.

Syntax

=DATE(year, month, day)

yearThe year, e.g. 2025.
monthThe month (1–12; larger or negative values roll over).
dayThe day of the month.

Examples

=DATE(2025, 3, 15)15 March 2025.
=DATE(A2, B2, C2)A date from three separate columns.
=DATE(YEAR(A2), MONTH(A2)+1, 1)First day of the next month.
=DATE(YEAR(A2), 12, 31)-A2Days left until the end of the year.

Turn text and numbers into real dates

Dates from other systems often arrive as text or as one long number. Cut out the year, month and day and let DATE build a real date that sorts, filters and calculates correctly.

=DATE(LEFT(A2, 4), MID(A2, 5, 2), RIGHT(A2, 2))20261130 becomes 30 Nov 2026.
=DATE(RIGHT(A2, 4), MID(A2, 4, 2), LEFT(A2, 2))The text 30.11.2026 becomes a real date.

Move a date by months and years

DATE fixes impossible values by itself: month 13 is January of the next year, day 0 is the last day of the previous month. That makes date maths simple.

=DATE(YEAR(A2), MONTH(A2)+3, DAY(A2))The same day three months later, like the next quarterly payment.
=DATE(YEAR(A2)+1, MONTH(A2), DAY(A2))The anniversary one year later.
=DATE(YEAR(A2), MONTH(A2), 0)The last day of the previous month.

Dates in conditions

Inside SUMIFS and COUNTIFS, build the date with DATE rather than typing it as text. A typed date depends on the computer's regional settings; DATE doesn't.

=SUMIFS(C2:C500, A2:A500, ">="&DATE(2026,1,1), A2:A500, "<"&DATE(2027,1,1))The total for 2026.

Common mistakes

A number appears instead of a date
The cell is formatted as General. Format it as a date (Ctrl+Shift+#).
Typing dates as text
"15.03.2025" typed in a non-matching locale stays text. DATE always creates a real date.

Frequently asked questions

Why does DATE show a number instead of a date?

Excel stores dates as numbers: 1 is 1 January 1900. Format the cell as Short Date and the number turns into a date.

How do I convert text to a date in Excel?

If the text is in your computer's date format, =DATEVALUE(A2) works. If not, cut it apart with LEFT, MID and RIGHT and give the parts to DATE, as in the example above.

How do I add months to a date?

=EDATE(A2, 3) adds three months and handles month ends: 31 January plus one month is 28 or 29 February. See also EOMONTH.

Why is my date in the wrong year, like 1900?

A small number was formatted as a date, or the year was given with two digits. DATE treats years 0 to 1899 as years after 1900, so always use four digits.

Available in: All versions of Excel, Excel for the web, Google Sheets

Related functions

YEAR, MONTH, DAYTODAYEOMONTHDATEDIF

↑ Practise DATE in the sheet above