Spreadsheet Practice

How to create a date from separate year, month and day columns in Excel

Formula (Excel and Google Sheets)

=DATE(A2,B2,C2)

Use =DATE(year, month, day), for example =DATE(A2,B2,C2).

Result on the example
one result per row in D2, filled down to D6
Works in
Every current version
Google Sheets
Same formula

See it work

The formula is already in D2, filled down to D6. Change any input and the result updates, or edit the formula to experiment.

How it works

DATE builds a real date from three numbers: year, month and day. It also rolls over values that are out of range, so DATE(2026,13,1) is January 1, 2027 and DATE(2026,3,0) is February 28.

=DATE(A2,B2,C2)

Result3/15/2026 (46096)

  1. A22026

    The value in A2.

  2. B23

    The value in B2.

  3. C215

    The value in C2.

  4. DATE(A2,B2,C2)3/15/2026 (46096)

    DATE: Builds a date from parts.

    • yearA22026
    • monthB23
    • dayC215

In Google Sheets

The same formula works in Google Sheets: =DATE(A2,B2,C2). We ran it in Google Sheets mode on the same data and it returns the same results.

Other ways to do it

Each one was run on the same example sheet.

FormulaResultWhen to use it
=DATEVALUE(B2&"/"&C2&"/"&A2)3/15/2026, 12/1/2025, 7/4/2026…Joins the parts into date text and converts it. Depends on US date settings; DATE doesn't.

Common mistakes

  • A two-digit year like 26 becomes 1926 in Excel. Use four-digit years.
  • Joining the parts with & gives text, not a date, until you convert it.

Try it yourself

Same data, empty answer cell. Your formula is graded instantly, then re-checked on changed data, so a typed-in number won't pass.

Create a date from separate year, month and day columns

In D2, build a real date from the year, month and day in columns A to C, and fill down to D6.

Questions

How do I build a date from a month name?

Turn the name into a number first: =DATE(A2,MONTH(B2&" 1"),C2).

How do I split a date back into parts?

Use =YEAR(D2), =MONTH(D2) and =DAY(D2).

Checked by running on 2026-10-30: every formula and result on this page was calculated by the Spreadsheet Practice formula engine, in both Excel and Google Sheets modes.