Use MIN, IF, and ROUND to Find the Smallest Positive Value in Excel
Question details
Find the smallest positive value in an Excel range and round the result.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Combine MIN, IF, and ROUND in a worksheet formula, optionally including an additional cell.
- Observed behavior
- The formula should exclude zero and negative values from the range, then round the minimum to the requested precision.
Check that B4:B10 contains the values you want to compare and choose the desired rounding precision. A precision of -2 rounds to hundreds, while 2 rounds to two decimal places.
Find and Round the Smallest Positive Value with an Array Formula
Use this formula to filter a range for positive values before finding and rounding the minimum.
Select an empty cell and enter =ROUND(MIN(IF(B4:B10>0,B4:B10)),-2). Replace B4:B10 with your range if needed.
Press Enter in current Excel versions. In older Excel versions, press Ctrl+Shift+Enter to confirm it as an array formula; do not type the surrounding braces yourself.
Edit the final ROUND argument to change the precision. To include B25 in the minimum and round to two decimal places, use =ROUND(MIN(IF(B4:B10>0,B4:B10),B25),2) and confirm it as required by your Excel version.

Find and Round Positive Values in WPS Spreadsheets
Use MIN, IF, and ROUND in WPS Spreadsheets to calculate and round the smallest positive value in a worksheet range.
- 1. Open your workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
- 2. Select an output cell: Click an empty cell where you want the rounded minimum to appear.
- 3. Enter the formula: Type =ROUND(MIN(IF(B4:B10>0,B4:B10)),-2), replacing the range and precision as needed.
- 4. Confirm and check the result: Press Enter to calculate. If your WPS version requires an array formula, edit the cell and confirm with Ctrl+Shift+Enter.

Frequently Asked Questions
How do I round the minimum to tens instead of hundreds?
Change the final ROUND argument from -2 to -1: =ROUND(MIN(IF(B4:B10>0,B4:B10)),-1). Confirm it as an array formula if your Excel version requires it.
Why does the formula return zero?
The range may contain no positive values, or the positive minimum may round to zero at the chosen precision. Check B4:B10 and try a less negative ROUND argument.
Does the positive-value condition also apply to B25?
No. In =ROUND(MIN(IF(B4:B10>0,B4:B10),B25),2), B25 is passed separately to MIN. A zero or negative value in B25 can therefore become the minimum.
When do I need to press Ctrl+Shift+Enter?
Older Excel versions require Ctrl+Shift+Enter to confirm this array formula. Current Excel versions generally calculate it when you press Enter.




