You can use the following basic syntax to use the MIN function in Excel to find the minimum value in a range while excluding cells that are equal to zero:
This particular formula finds the minimum value in the cell range B2:B15, excluding any cells that are equal to zero.
This formula works by first using COUNTIF() to count the number of zeros and adding one, then using the SMALL() function to return the kth smallest value not equal to zero.
The following example shows how to use this formula in practice.
Example: How to Use MIN Function and Exclude Zero in Excel
Suppose we have the following dataset in Excel that shows the number of sales made by various employees at some company:
We can use the following formula to find the minimum value in the sales column while excluding all values equal to zero:
We’ll type this formula into cell D2 and then press Enter:
From the output we can see that the minimum value in the sales column (excluding all values equal to zero) is 2.
The following tutorials explain how to perform other common tasks in Excel: