You can find the smallest number greater than zero in Excel using the MINIFS function (in newer versions) or a combination of FILTER, MIN, and IF functions. For older versions, use a helper column with nested IF statements. The simplest method is:

  • Use MINIFS (Excel 2019 and Office 365) with criteria "cell > 0" to return the lowest positive value in a range.

What You'll Need

  • Excel 2016 or later (or a compatible spreadsheet app like Google Sheets)
  • A column or range containing numeric values (some of which may be zero or negative)
  • At least one positive number in your dataset (otherwise the function will return an error)
  • Basic familiarity with Excel functions (IF, MIN, FILTER)

Step-by-Step

  1. Method 1: Using MINIFS (Excel 2019/O365 - Recommended)

    1. Open your Excel worksheet containing the numbers you want to analyze
    2. Click on an empty cell where you want the result to appear (e.g., D1)
    3. Enter this formula: =MINIFS(range, range, ">0") Replace range with your actual data range (e.g., A2:A100)
    4. Press Enter
    5. If you get #DIV/0!, check that your data range contains at least one positive number
  2. Method 2: Using FILTER + MIN (Excel 365 - Dynamic Array)

    1. Select an empty cell (e.g., D1)
    2. Enter this formula: =MIN(FILTER(range, range, ">0")) Again replace range with your actual data range
    3. Press Enter and Excel will automatically expand the result to show all valid values
  3. Method 3: Using MIN with an IF Helper (Works in All Versions)

    1. First create a helper column (next to your data) with this formula in the first cell: =IF(range, ">0", range) Drag this formula down to create a new column of TRUE/FALSE values for all positive numbers
    2. In another empty cell, use MIN with your original range and the helper column: =MIN(IF(data_range>0, data_range, "")) Press Ctrl+Shift+Enter to make it an array formula (Excel 2016 and earlier)
    3. For Excel 365: Use the formula without array entry: =MIN(IF(data_range>0, data_range, "")) Press Enter normally
  4. Method 4: Using AGGREGATE (Best for Error Handling)

    1. Enter this formula in your result cell: =AGGREGATE(2, 6, range/MAX(range<=0, 1), TRUE) Replace range with your data range
    2. Press Enter - this formula ignores zeros and returns the minimum positive value

Common Mistakes

  • Forgetting to replace the placeholder "range" with your actual data range
  • Using =MIN(range) without filtering for positive numbers first
  • Entering array formulas in Excel 365 without pressing Enter (should be Ctrl+Shift+Enter in older versions)
  • Assuming the formula will work if there are no positive numbers in your dataset
  • Using single quotes ('0') instead of zero (0) in comparisons
  • Forgetting that MINIFS requires at least one positive number to return a result

Tips

  • Add error handling with IFERROR: =IFERROR(MINIFS(range, range, ">0"), "No positive numbers") to display a message when there are no positive values
  • For ranges with mixed data types, use: =MINIFS(range, ISNUMBER(range), TRUE, range, ">0") to first ensure you're only working with numbers
  • If your data has text representations of numbers (like "5" instead of 5), use VALUE() to convert them first
  • Use relative references when copying formulas down or across columns
  • For version compatibility, create named ranges for your data ranges
  • Test with small datasets first to verify your formula works as expected

Troubleshooting

If your formula isn't working, follow this order:

  1. Check for errors
    • If you get #N/A, your data range contains no positive numbers
    • If you get #DIV/0!, either your range is empty or has no positive values
    • If you get #VALUE!, check that your range contains numbers only
    • If you see blank cells, your criteria might be too restrictive
  2. Verify your data
    • Look for hidden zeros or negative numbers you might have missed
    • Check for text that looks like numbers (e.g., "100" instead of 100)
    • Use Find (Ctrl+F) to search for "0" in your data
    • Sort your data to see the complete range of values
  3. Test with sample data
    • Create a simple test column with values like 5, -3, 2, 0, 8
    • Apply your formula to this test column to verify it returns 2
    • If it works with test data but not your real data, the issue is likely with data formatting or hidden content
  4. Check formula references
    • Press F9 to temporarily replace your range reference with actual values
    • Verify the formula shows the correct range when expanded
    • Check for missing commas or parentheses in complex formulas
  5. Update your Excel version
    • Newer Excel versions handle dynamic arrays better than older ones
    • Check for updates via File > Account > Update Options
    • New functions like MINIFS may not be available in older versions
  6. Alternative approach
    • If all else fails, sort your data then use MIN on the positive values only
    • Or create a pivot table with a filter for values greater than 0, then use MIN on the pivot result

Frequently Asked Questions

What if my Excel doesn't have the MINIFS function?

MINIFS was introduced in Excel 2019 and Office 365. For earlier versions, use the FILTER+MIN method (Method 2) or the array formula approach (Method 3). If you're using Excel 2010-2016, you'll need to enter the array formula with Ctrl+Shift+Enter instead of just Enter.

Can I use this formula with a table reference instead of a range?

Yes. If your data is in an Excel Table, you can replace the range reference with your table name. For example, if your table is named "SalesData", use: =MINIFS(SalesData[Amount], SalesData[Amount], ">0") This works because table references automatically expand as you add rows.

How do I handle formulas that return #N/A or blank?

Wrap your formula in IFERROR to provide a custom message: =IFERROR(MINIFS(range, range, ">0"), "No positive values found") This will display your message instead of the error when there are no positive numbers in your data range.

Can I use this to find the next positive number after a specific value?

Not directly. For that, you would need a more complex approach using SORT, INDEX, and MATCH functions. The basic MIN>0 formula only finds the smallest positive number in your entire dataset, not the next positive after a particular value.

Will this work with dates converted to numbers?

Yes, but with a caveat. Excel treats dates as numbers where 1 represents January 1, 1900. If you have actual date values that need to be converted to numbers, use: =MINIFS(VALUE(range), VALUE(range), ">DATE(1900,1,1)") This ensures proper numeric comparison.

How do I find the minimum greater than 0 in a 2D range?

Use MINIFS with the same approach. For a 2D range like A1:B100, use: =MINIFS(A1:B100, A1:B100, ">0") This will scan all cells in the range and return the smallest positive value found anywhere in that area.

For more complex scenarios involving multiple criteria or conditional formatting, you may need to combine these methods or use Power Query for data transformation before applying the minimum function.