DATE Function in Microsoft Excel: Formula, Examples & Troubleshooting
Learn the DATE formula in Microsoft Excel: build a real date from numeric components, with reproducible examples, expected answers and compatibility cautions.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: Use DATE to build a real date from numeric components. The example below supplies exact inputs and independently calculated expected results, so you can check your formula before replacing the demonstration values with real workbook data.
Verification: The function is covered by a vendor reference or its published formula catalogue. The worked outputs here are independently reasoned, not screenshots or native test results from Microsoft Excel. Check release-specific support and argument details in the referenced vendor help.
Availability and version history
- Introduced: Introduction version not established by the official history reviewed.
- Availability: Official help lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2016.
- Checked: October 14, 2026; official DATE reference. Documentation check, not a new native test; existing example-verification notes retain their scope.
Syntax and arguments
=DATE(year, month, day)
Numbers identifying year, month and day. In formula syntax, square brackets mark optional arguments; do not type square brackets into an ordinary formula unless the particular function requires array notation. The separator shown is for the example locale and might change with spreadsheet settings.
When to use it: DATE is safer than concatenating text when building filter boundaries.
Prepare the example inputs
Enter the self-contained DATE-based formulas in unused cells. Keep source dates as actual date values, and inspect the formula bar if the displayed answer differs. Format the date-valued output as a date; the calendar result shown below is a display, not text returned by the function.
Worked example: exact formula and expected output
=DATE(2026,10,11)
Expected result: 11 Oct 2026. The formula constructs a date value; your cell’s date format controls the display.
- Select an unused output cell (for example H2 if the practice table occupies A1:F9).
- Enter the formula exactly as shown, including the opening equals sign and quoted text.
- Compare the displayed answer to the expected result, then inspect the source cells if it differs.
For a range formula, the row numbers include data rows only unless the example explicitly refers to headers. A result that looks plausible may still be wrong if it references the wrong column.
Second example: a different input
=DATE(2024,2,29)
Expected result: 29 Feb 2024. 2024 is a leap year, making February 29 valid.
This second check uses the same function with a different input, helping you identify whether the first result was coincidental or caused by a shifted reference.
Excel normalizes components instead of validating a calendar entry
DATE requires all three arguments. Microsoft documents month and day rollover, so an out-of-range component can produce a valid date in a different month or year:
| Formula | Expected calendar date |
|---|---|
| =DATE(2026,13,5) | 2027-01-05 |
| =DATE(2026,0,5) | 2025-12-05 |
| =DATE(2026,10,0) | 2026-09-30 |
| =DATE(2026,10,32) | 2026-11-01 |
| =DATE(2026,2,29) | 2026-03-01 |
The last result does not mean February 29 exists in 2026. DATE carries the excess day forward. This is convenient for boundary calculations but insufficient as an input-validation rule.
Advanced example: check that the entered components survived
Enter numeric 2026, 2, 29 in A2:C2. Put =DATE(A2,B2,C2) in D2, then:
=AND(YEAR(D2)=A2,MONTH(D2)=B2,DAY(D2)=C2)
Expected result: FALSE, because D2 is March 1, 2026. Change A2 to 2024 and the expected date becomes February 29, 2024, with a TRUE component comparison.
This control assumes all three inputs are already validated integers and that the year is in the permitted range. It does not catch or suppress every invalid-type or out-of-range error. Keep the submitted values if an audit needs to show what was normalized.
Advanced example: construct a whole-month interval
For a month identified by October 2026, use:
=DATE(2026,10,1)
=DATE(2026,11,1)
Expected boundaries are 2026-10-01 and 2026-11-01. A condition from the first boundary inclusive to the second exclusive represents the entire month, including any time on October 31. The difference between the boundaries is 31 days.
For December, the second boundary can be written =DATE(2026,13,1), which normalizes to 2027-01-01. The same construction naturally crosses a year boundary without a text-date parser.
Use SUMIFS or COUNTIFS with these explicit bounds when the question is about dated records, rather than concatenating a locale-dependent date string into a criterion.
Advanced example: distinguish a calendar-year shift from a fixed-day shift
With A5 containing =DATE(2024,2,29):
=DATE(YEAR(A5)+1,MONTH(A5),DAY(A5))
The documented normalization model gives 2025-03-01, because the new year has no February 29. A business rule requiring the last day of February would need a different explicit policy; DATE does not choose that policy for you.
For a non-leap anchor =DATE(2026,10,11), rebuilding it with year plus one produces 2027-10-11. These two controls show why testing only an ordinary mid-month date does not establish every anniversary rule.
Four-digit years and date systems
Under the documented 1900-system rule, numeric year values 0 through 1899 have 1900 added. Thus =DATE(26,10,11) means 1926-10-11, not 2026-10-11. Use the full four-digit year. Microsoft documents #NUM! for year below zero or at least 10000.
Dates are numeric values whose interpretation depends on the workbook’s date system. Microsoft documents a 1462-day serial difference between the 1900 and 1904 systems for the same contemporary calendar date. Date-system reference.
The examples above use calendar components and compare displayed dates, not interchangeable raw serial numbers. Historical 1900 boundary behavior and every imported date conversion remain separate native test cases.
Important edge cases and a common mistake
Watch out: A formatted date displays differently by region; do not compare raw spreadsheet date serials across 1900/1904 systems.
If this formula needs to work in older Excel releases, consult the Microsoft version markers first; the function’s presence in a Microsoft 365 workbook does not establish Excel 2013 support.
Troubleshooting in Microsoft Excel
Microsoft documents Formulas → Evaluate Formula for Excel for Windows. If that command is unavailable in your client, put the component expressions in separate helper cells and compare their results; also check whether numeric-looking source values are stored as text. #NAME? suggests a misspelling or an unavailable new function. #VALUE! often indicates a wrong argument type; #SPILL! on array functions often means output cells are occupied.
If you get the wrong answer but no error, try these checks in order: (1) evaluate the simplified first example; (2) confirm the cell values and data types; (3) check the exact row and column boundaries; (4) verify quoted text, comparison operators and separators; (5) only then add more criteria or nested functions.
For a reproducible comparison with another spreadsheet product, use the same input values in both applications and record the installed version and locale. Different default matching behavior or handling of empty values can be a migration issue rather than a mathematical disagreement.
Moving this formula between spreadsheet programs
Excel generally uses commas in English-language help formulas; LibreOffice and Collabora Calc commonly use semicolons. An identically named function may still have different matching defaults, dynamic-array behavior or version support.
Related guides already published for this function: LibreOffice Calc | Apache OpenOffice Calc | Gnumeric | ONLYOFFICE Spreadsheet Editor | Apple Numbers
If a comparison tool says Not researched here, that means we do not yet have a checked guide for that software. It does not mean the software lacks this function. See the 12-program comparison tool for a guide-coverage matrix.
Official reference and editorial verification
Evidence level: Vendor-published function catalogue / formula overview, checked for this editorial batch on October 11, 2026; example outputs verified by direct reasoning/arithmetic where applicable. No execution in Microsoft Excel was performed. Some platform-, language- and release-specific edge cases remain for native testing.
October 14, 2026 review scope
The complete guide and all original formulas were reviewed against the direct Microsoft DATE reference. Added expectations use independently computed modern Gregorian calendars, explicit component rules and narrowly documented errors. The latest approved lifecycle section and Windows-specific troubleshooting scope are retained. No native Excel execution, historical serial certification or complete input-conversion matrix is claimed.