WorkbookLogic
FunctionDate and timeintermediateDATEIF

DATE Function

By WorkbookLogic

The Excel DATE function creates a true Excel date from separate year, month, and day numbers, with automatic normalization of overflow values.

ExcelLast reviewed Sep 11, 2026
date-function-v1.0.0.xlsx
Excel DATE Function
DATE builds a true Excel date from separate year, month, and day values.
Source cases, editableDATE examples
ScenarioYearMonthDayBehaviorExampleFormula syntaxResult
Standard date2026815Direct constructionStandard date=DATE(B12,C12,D12)Aug 15, 2026
Leap day2024229Valid leap-year dateLeap day=DATE(B13,C13,D13)Feb 29, 2024
Month overflow2026131Rolls into next yearMonth overflow=DATE(B14,C14,D14)Jan 1, 2027
Day zero202630Returns prior month-endDay zero=DATE(B15,C15,D15)Feb 28, 2026
Year start202711First day of yearYear start=DATE(B16,C16,D16)Jan 1, 2027
How DATE behaves
DATE returns a numeric date serial that can be sorted, filtered, and used in later date arithmetic.
Month and day overflow are normalized, which is useful but can also conceal an invalid source part.
Use four-digit years to avoid Excel's special interpretation of small year values.
Reliability checks
Leap-day inputs return 29-Feb-2024OK
Month 13 rolls to 01-Jan-2027OK

Overview

The Excel DATE function combines numeric year, month, and day parts into a true date. It is safer than assembling a locale-dependent text date and produces a value that can be sorted, compared, and used in date arithmetic.

Quick reference

Syntax: =DATE(year, month, day)

Returns: An Excel date serial number representing the constructed date. (date)

Arguments:

  • year (required) — The numeric year component.
  • month (required) — The numeric month component; values outside 1–12 are normalized.
  • day (required) — The numeric day component; overflow and zero or negative values are normalized.

All three numeric arguments are required. DATE normalizes month and day values outside their usual ranges, which supports date arithmetic but can also conceal invalid source components.

Common uses

  • Combine separate year, month, and day fields.
  • Create unambiguous date criteria for COUNTIFS and SUMIFS.
  • Build the first or last day of a period.
  • Generate dynamic dates from worksheet inputs.

Calculations

DATE converts its three numeric arguments into an Excel date serial. The cell's number format controls whether that serial appears as 29-Feb-2024, 2/29/2024, or another date display.

Month and day inputs normalize automatically. Month 13 moves to January of the following year, while day 0 returns the last day of the previous month. This behavior is useful for date calculations but can also conceal invalid source components if normalization was not intended.

Use four-digit years. Excel applies special rules to small year values, so explicit years avoid ambiguity.

Function behavior

Situation

Behavior

Valid components

Returns the corresponding date serial.

Month above 12 or below 1

Rolls forward or backward by the excess months.

Day above the month's length

Rolls into the following month.

Day zero or negative

Moves backward from the first day of the month.

Leap-year date

Handles February 29 automatically when valid.

Unformatted result

May display as a serial number.

Text that cannot be interpreted numerically

Returns #VALUE!.

Common errors

Joining date parts as text

What happens:
The result may be locale-dependent and does not reliably behave as a date.

Better approach:
Use DATE so the result remains numeric and supports date operations.

Treating overflow as validation

What happens:
An invalid source month or day silently rolls into another period.

Better approach:
Validate components separately when out-of-range inputs should be rejected.

Assuming the serial result is wrong

What happens:
A valid date appears as a large number because the cell uses General format.

Better approach:
Apply an appropriate date number format without converting the value to text.

Example

Example 1 — Create a Leap-Day Date

=DATE(B12,C12,D12)

Inputs 2024, 2, and 29 return the valid date 29-Feb-2024.

Example 2 — Create a Standard Date

=DATE(2026,8,15)

The result is the true date 15-Aug-2026, not a text label.

Example 3 — Normalize Month 13

=DATE(B14,C14,D14)

In the workbook, a month value of 13 advances into the next year and returns 01-Jan-2027.

Example workbook

The workbook contains a DATE Example sheet with five editable year, month, and day cases. Live formulas demonstrate normal dates, leap day, month overflow, and day normalization, while two checks confirm 29-Feb-2024 and the month-13 rollover. A Notes sheet explains serial dates and normalization.

Key takeaway

Use DATE to create an unambiguous numeric date, and remember that out-of-range month and day values are normalized rather than rejected.