Table of Contents
Use =DATE(year,month,day) to build an Excel date from three numbers. For example, =DATE(2025,6,1) returns June 1, 2025. The arguments are always year, month and day of the month, regardless of how your Excel installation displays dates.

Create a date from cells
If A2 contains 2025, B2 contains 6 and C2 contains 1, enter the following formula in D2:
=DATE(A2,B2,C2)Copy the formula down to build dates from subsequent rows. Use four digits for the year. If Excel uses semicolons as its argument separator, use =DATE(A2;B2;C2).
Use a DATE result in a condition
To count dates in D2:D100 on or after June 1, 2025, enter:
=COUNTIF(D2:D100,">="&DATE(2025,6,1))Use ">" if June 1 itself should be excluded. The cells need to contain actual Excel dates for a reliable comparison. See how conditional counting works or when to use Excel’s other counting functions.
Fix unexpected results
- A number appears instead of a date: Format the result cell as a date using Home > Number. Excel stores dates as serial numbers.
- The result moves into the next month: DATE can roll over out-of-range values. For example,
=DATE(2025,2,30)returns March 2, 2025. Check input ranges separately if invalid calendar dates need to be rejected.
See Microsoft’s DATE documentation for argument rules.
Reader Comments 0
Sign in with email or Google to join the discussion.