Use Excel MIN to Return the Earlier of Two Dates
Question details
Find the earlier of two dates in Excel and ensure both values are stored as dates rather than text.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A user wants to compare dates in two cells and return the earlier one.
- Observed behavior
- The desired result is the earlier date, displayed in a date format.
Identify the two cells containing the dates and choose an empty cell for the result. The examples below use A2 and B2.
Use MIN to return the earlier date
Use this formula when both cells contain real Excel dates.
Select an empty cell, enter =MIN(A2:B2), and press Enter. You can also use =MIN(A2,B2).
Select the result cell, open Home > Number Format, and choose Short Date or Long Date.

Convert text dates before using MIN
Use this solution if one or both date cells are stored as text.
Find the earlier date with WPS Spreadsheets
Use the MIN function in WPS Spreadsheets to compare two numeric dates, then format the result as a date.
- 1. Open the spreadsheet: Open WPS Spreadsheets and select your workbook with File > Open.
- 2. Check the dates: Enter =ISNUMBER(A2) and =ISNUMBER(B2) in empty cells to check that both date values are numeric.
- 3. Find the earlier date: Select an empty cell, enter =MIN(A2:B2), and press Enter.
- 4. Display the result as a date: Select the result cell and choose a date format from the Home tab's number format options.

Frequently Asked Questions
Why does MIN return a number instead of a date?
Excel stores dates as serial numbers. Select the result cell and choose Short Date or Long Date from Home > Number Format.
How can I tell whether a date is stored as text?
Enter =ISNUMBER(A2) in an empty cell. FALSE means the value in A2 is not numeric and may be a text date.
Can MIN compare dates in nonadjacent cells?
Yes. Enter a formula such as =MIN(A2,D2) to compare dates in separate cells.
What should I do if DATEVALUE returns an error?
Check that the text matches a date format Excel recognizes. You can also select the source column and use Data > Text to Columns to specify the correct date order.




