Function Problems

Use Excel MIN to Return the Earlier of Two Dates

Maira MehtabMaira Mehtab Dec 2, 2026 869 views

Question details

Find the earlier of two dates in Excel and ensure both values are stored as dates rather than text.

Use Excel MIN to Return the Earlier of Two Dates
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.
Before you start

Identify the two cells containing the dates and choose an empty cell for the result. The examples below use A2 and B2.

Solution 1Recommended

Use MIN to return the earlier date

Use this formula when both cells contain real Excel dates.

1
Enter the formula

Select an empty cell, enter =MIN(A2:B2), and press Enter. You can also use =MIN(A2,B2).

2
Format the result

Select the result cell, open Home > Number Format, and choose Short Date or Long Date.

Use MIN to return the earlier date
Check unexpected results: Excel stores dates as numbers. MIN can ignore dates stored as text in referenced cells, so check both inputs if the result is unexpected.
Compare dates in WPS

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. 1. Open the spreadsheet: Open WPS Spreadsheets and select your workbook with File > Open.
  2. 2. Check the dates: Enter =ISNUMBER(A2) and =ISNUMBER(B2) in empty cells to check that both date values are numeric.
  3. 3. Find the earlier date: Select an empty cell, enter =MIN(A2:B2), and press Enter.
  4. 4. Display the result as a date: Select the result cell and choose a date format from the Home tab's number format options.
Compare two dates with the familiar MIN formulaCheck date values with ISNUMBEROpen and save Microsoft Excel XLSX filesUse a familiar spreadsheet interface for free
microsoft office alternative - wps office

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.