Formula Errors

Prevent Excel MIN IF Array Formulas from Showing 1/0/1900

Huma Ashraf ChHuma Ashraf Ch Nov 27, 2026 870 views

Question details

Prevent a MIN IF array formula from displaying a zero date when no task or time matches the criteria.

Prevent Excel MIN IF Array Formulas from Showing 1/0/1900
Product
Microsoft Excel
Device & OS
not provided
Scenario
Find the earliest matching task or time in a date-formatted cell and leave the result blank when there is no match.
Observed behavior
The formula returns zero when no records match, and Excel displays that zero as 1/0/1900 or a similar date.
Before you start

Check that the task and date/time criteria ranges cover the same rows and that the date and time values are stored as numbers. Identify the threshold cell or expression used by your current formula.

Solution 1Recommended

Check for matching records before calculating the minimum

Use COUNTIFS to return an empty string when no records match, then calculate the minimum only when a match exists.

1
Select the result cell

Click the cell containing the MIN IF array formula and select its formula in the formula bar.

2
Enter the guarded formula

Replace the formula with =IF(COUNTIFS('Raw Data'!$A$2:$A$37224,$B$2,'Raw Data'!$F$2:$F$37224,">="&($B5+$C$2))=0,"",MIN(IF('Raw Data'!$A$2:$A$37224=$B$2,IF('Raw Data'!$F$2:$F$37224>=($B5+$C$2),'Raw Data'!$F$2:$F$37224)))). Adjust the sheet name, ranges, and cell references to match your workbook.

3
Confirm the formula

Press Enter in a current Excel version. In older versions that require legacy array formulas, press Ctrl+Shift+Enter instead.

4
Test the result

Change the criteria cells to test both a matching record and a case with no match. The latter should display a blank.

Check for matching records before calculating the minimum
Keep the criteria consistent: The COUNTIFS conditions must match the conditions inside MIN IF. Use >= for dates at or after the threshold, or change both comparisons to <= for dates at or before it.
Work with formulas in WPS

Prevent zero dates in WPS Spreadsheets

Open your workbook in WPS Spreadsheets and use COUNTIFS to check for matching records before calculating a MIN IF result.

  1. 1. Open the workbook: In WPS Spreadsheets, choose Open and select your Excel workbook.
  2. 2. Select the formula cell: Click the cell with the MIN IF formula, then select its contents in the formula bar.
  3. 3. Add the match check: Wrap the existing formula as =IF(COUNTIFS(criteria_range1,criteria1,criteria_range2,criteria2)=0,"",existing_min_if_formula), replacing the placeholders with the same ranges and conditions used in the MIN IF formula.
  4. 4. Confirm and test: Press Enter to confirm the formula; if your WPS version requires legacy array entry, use Ctrl+Shift+Enter. Test criteria with and without matching records.
Return a blank instead of a zero date when no records matchOpen and edit Microsoft Excel XLS and XLSX filesUse a familiar spreadsheet interfaceWork with spreadsheets in the free WPS Office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel show 1/0/1900 instead of a blank?

The formula returns zero when no values match, and the cell's date format displays that zero as a date. Check the formula and the cell's Number format in Format Cells.

Why does the formula return a time from the next day?

A >= condition accepts any matching time at or after the threshold, including the next day. If results must stay within a specific day, add the same upper-bound condition to both COUNTIFS and the MIN IF calculation.

Should I use >= or <= in the date condition?

Use >= to find values at or after the threshold and <= for values at or before it. Apply the same comparison in COUNTIFS and the MIN IF array.

Does a custom format remove the zero from the cell?

No. A format such as [=0]"";m/d/yyyy hides the zero visually, but other formulas can still read it. Use the COUNTIFS approach if the formula should return an empty string instead.