Use an Excel MIN Array Formula That Ignores Blank Cells
Question details
Calculate the minimum value for matching records while excluding blank cells from the source range.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A summary sheet needs the minimum value from a data sheet for records matching a specified criterion.
- Observed behavior
- The MIN array formula can return zero when the source range contains blank cells.
Identify the criteria range, the cells containing values, and the cell containing the match criterion. Make sure the criteria and value ranges cover the same rows.
Exclude Blank Cells in a MIN Array Formula
Use this formula when you need to match a criterion and calculate the minimum from nonblank cells.
Select the result cell on the Summary sheet and enter =MIN(IF(('Cleansed Data'!$I$2:$I$1000=Summary!$D$4)*('Cleansed Data'!$F$2:$F$1000<>""),'Cleansed Data'!$F$2:$F$1000)).
In the formula bar, replace the sheet names and ranges if needed. Column I is the criteria range, Summary!D4 is the criterion, and column F contains the values to evaluate.
Press Enter in a current version of Excel. In older Excel versions, press Ctrl+Shift+Enter to confirm it as an array formula.

Use MINIFS to Exclude Blank Cells
Use MINIFS as a simpler alternative in Excel versions that support the function.
Calculate a Minimum Without Blanks in WPS Spreadsheets
Use a conditional MIN array formula in WPS Spreadsheets to find the lowest matching value while excluding blank source cells.
- 1. Open your workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
- 2. Select the result cell: Go to the Summary sheet and click the cell where you want the minimum to appear.
- 3. Enter the formula: In the formula bar, enter =MIN(IF(('Cleansed Data'!$I$2:$I$1000=Summary!$D$4)*('Cleansed Data'!$F$2:$F$1000<>""),'Cleansed Data'!$F$2:$F$1000)), adjusting the references to match your workbook.
- 4. Confirm and save: Press Enter, or use Ctrl+Shift+Enter if your WPS version requires array-formula confirmation. Check the result, then use File > Save.

Frequently Asked Questions
Why does my MIN array formula return zero when there are blank cells?
An array calculation can treat blank source cells as zero. Add a condition such as range<>"" inside IF to exclude them before MIN calculates the result.
Does the formula exclude real zero values?
No. The condition <>"" excludes blanks but retains numeric zero. If zero is a valid matching value, it can still be the minimum.
When do I need Ctrl+Shift+Enter?
In older Excel versions, select the formula cell and confirm the MIN(IF(...)) formula with Ctrl+Shift+Enter. Current Excel versions generally accept it with Enter.
Why is the result still zero after excluding blanks?
Check the matching rows for a real zero. MIN can also return zero when no numeric values satisfy the conditions, and MINIFS returns zero when no cells meet its criteria.
Can I use whole-column references in the array formula?
You can, but limiting the references to the rows containing data, such as F2:F1000 and I2:I1000, can improve performance. Keep both ranges aligned.




