Skip to main content

How to Build a Date from a Year, Month and Day in Excel with DATE

· 4 min read
Jagdish Kumawat
Founder @ Dewiride

When the year is in one cell and you need a date in it, don't type the date: build it. =DATE(year, month, day) makes a real Excel date from three numbers. =DATE(B1,4,1) is 1 April of whatever year B1 holds, so changing the year moves the date with it.

The example is from the Clock change sheet in How to Calculate Hours Worked Across a Daylight Saving Time Change in Excel. B1 holds the year, 2026, and the sheet needs 1 April and 1 November of that year.

Prerequisites​

  • The year in a cell, here 2026 in B1.

Step 1: Type the DATE Formula​

In B4:

Clock change → B4
=DATE(B1,4,1)
  • B1: the year, 2026.
  • 4: the month, April.
  • 1: the day.

As you type, B1 is outlined in the reference colour:

Cell B4 being edited with =DATE(B1,4,1), and B1, which holds 2026, outlined in blue

Step 2: Check the Date​

Press Enter. B4 shows 01/04/2026. Excel gave it a date format by itself; the Number Format box says Date:

The Clock change sheet with B4 outlined in red showing 01/04/2026 and the formula bar showing =DATE(B1,4,1)

In C4, =DATE(B1,11,1) gives 01/11/2026 the same way.

What DATE Returns​

Microsoft's DATE function page says it returns the serial number that represents the date: the count of days in which 1 January 1900 is day 1. That's why DATE results can be compared, subtracted and fed to other date functions. How to See the Serial Number Behind a Date in Excel shows the numbers.

The same page notes that a month over 12 carries into the next year: =DATE(2026,13,1) is 1 January 2027.

Common Mistakes​

MistakeWhat happensDo this instead
Typing a date that should follow a year cellIt stays in the old year when the year changesBuild it with DATE
Putting the arguments in day, month, year orderDATE always takes year, month, day=DATE(year, month, day)
Typing a two-digit year like 26Excel reads years from 0 to 1899 as added to 1900, so 26 is 1926Use four-digit years

Troubleshooting​

SymptomLikely causeFix
The result is a five-digit numberThe cell has the General formatGive it a date format
The date is in 1900The year cell is empty or 0Fill in the year

FAQ​

Why not just type 01/04/2026?​

Because then it doesn't follow B1. With DATE, typing 2027 in B1 moves every date built from it to 2027.

Does the regional format matter?​

Not for DATE. Its arguments are numbers, so =DATE(2026,4,1) is 1 April whatever the regional format. Only how it's displayed changes.

Conclusion​

=DATE(year, month, day) builds a real date from numbers, and from cells, so dates follow the values they depend on.

Additional Resources​