To find the minimum value in an Excel range while ignoring zeros, use the MINIFS function (Excel 2019 and later) or an array formula with IF and MIN (for older versions). This approach returns the smallest non-zero number, which is useful when zeros represent missing or irrelevant data in datasets like sales figures, test scores, or measurements.

What You'll Need

  • Microsoft Excel (any version from 2007 onward; steps vary slightly by version)
  • A dataset containing numeric values, some of which may be zero
  • Basic familiarity with Excel formulas and cell references

Step-by-Step

  1. Open your Excel workbook and locate the range of cells you want to evaluate—for example, A1:A10 containing mixed values including zeros.
  2. Click on an empty cell where you want the result to appear.
  3. If you are using Excel 2019, Excel 2021, or Excel for Microsoft 365, type the formula: =MINIFS(A1:A10,A1:A10,">0") and press Enter. This finds the minimum value in A1:A10 where the value is greater than zero.
  4. If you are using Excel 2016 or earlier, you must use an array formula. In the same empty cell, type: =MIN(IF(A1:A10>0,A1:A10)). Do not press Enter yet—instead, press Ctrl + Shift + Enter simultaneously to confirm it as an array formula. Excel will wrap the formula in curly braces: {=MIN(IF(A1:A10>0,A1:A10))}.
  5. Verify the result: the cell should now display the smallest positive number in the range. If all values are zero or negative, the result will be 0 (for MINIFS) or #NUM! (for the array formula if no values meet the condition).
  6. To include negative numbers but still exclude zeros, adjust the condition: use =MINIFS(A1:A10,A1:A10,"<>",A1:A10,"<>0") in newer versions or =MIN(IF((A1:A10<>0)*(A1:A10<>""),A1:A10)) as an array formula in older versions. This treats blanks and zeros as excluded.
  7. Copy the formula down or across to apply it to other rows or columns as needed, using relative or absolute references ($) where appropriate.

Common Mistakes

  • Forgetting to press Ctrl + Shift + Enter when using the array formula in older Excel versions, which causes the formula to return an incorrect value or error.
  • Using =MIN(A1:A10) and manually ignoring zeros, which fails when the dataset changes or scales.
  • Misapplying the criteria in MINIFS—for example, using "=0" instead of "<>0" or ">0", leading to inclusion of zeros or exclusion of valid data.
  • Not accounting for blank cells: some formulas treat blanks as zero, so ensure your data doesn’t have unintended blanks if they should be considered.
  • Using whole-column references (e.g., A:A) in array formulas in older Excel, which can cause excessive calculation time or crashes.

Tips

  • Use the MINIFS function whenever possible—it’s faster, non-array, and easier to read and maintain.
  • Combine with IFERROR to handle cases where no valid data exists: =IFERROR(MINIFS(A1:A10,A1:A10,">0"),"No valid data").
  • For dynamic ranges, consider converting your data to an Excel Table (Ctrl+T) and using structured references like =MINIFS(Table1[Value],Table1[Value],">0").
  • To find the minimum non-zero absolute value (ignoring sign), use =MINIFS(ABS(A1:A10),ABS(A1:A10),">0") in newer versions.
  • Always test your formula with known values—enter a few test numbers and zeros—to confirm behavior before relying on it in critical sheets.

Troubleshooting

  • If the result is 0 despite expecting a positive minimum, check that your condition correctly excludes zeros—ensure you used ">0" or "<>0" and not ">=0".
  • If you get a #VALUE! error in the array formula, confirm you pressed Ctrl + Shift + Enter—not just Enter—and that the formula is surrounded by curly braces.
  • If the result is #NUM! in older Excel, it means no values met the condition (e.g., all are zero or negative when filtering for >0). Add IFERROR or check your data.
  • If the formula seems slow, avoid whole-column references (A:A) in array formulas; limit the range to your actual data size.
  • If copying the formula gives unexpected results, check whether references are relative or absolute—use $ to lock rows or columns as needed.
  • If MINIFS is not available (older Excel), ensure you’re not in compatibility mode; save the file as .xlsx to access newer functions.

Frequently Asked Questions

Can I ignore zeros and blank cells?

Yes. In Excel 2019+, use =MINIFS(A1:A10,A1:A10,"<>",A1:A10,"<>0"). In older versions, use =MIN(IF((A1:A10<>0)*(A1:A10<>""),A1:A10)) as an array formula.

What if I want the minimum non-zero value including negatives?

Use ">0" to exclude zeros and negatives. To include negatives but exclude zeros, use "<>0" as the condition: =MINIFS(A1:A10,A1:A10,"<>0").

Does this work with decimal numbers?

Yes. The MINIFS and IF/MIN formulas work identically with integers and decimals—Excel treats them as numeric values without distinction.

Can I use this across multiple sheets?

Yes, but you must reference the sheet explicitly: =MINIFS(Sheet2!A1:A10,Sheet2!A1:A10,">0"). The same applies to array formulas.

Why does my array formula show #VALUE! after editing?

Because editing an array formula breaks the Ctrl+Shift+Enter requirement. After editing, always press Ctrl+Shift+Enter again to reapply it as an array formula.

Is there a way to do this without formulas?

Not directly. You could filter the data to show non-zero values and then use MIN on the visible cells, but this is manual and not dynamic—formulas are preferred for automation.