Prevent Excel MIN IF Array Formulas from Showing 1/0/1900
Question details
Prevent a MIN IF array formula from displaying a zero date when no task or time matches the criteria.

- 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.
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.
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.
Click the cell containing the MIN IF array formula and select its formula in the formula bar.
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.
Press Enter in a current Excel version. In older versions that require legacy array formulas, press Ctrl+Shift+Enter instead.
Change the criteria cells to test both a matching record and a case with no match. The latter should display a blank.

Hide zero dates with a custom number format
Use formatting when you only need to hide a zero result and do not need to distinguish it from a valid zero.
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. Open the workbook: In WPS Spreadsheets, choose Open and select your Excel workbook.
- 2. Select the formula cell: Click the cell with the MIN IF formula, then select its contents in the formula bar.
- 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. 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.

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.




