Excel SMALL Function: Step-by-Step How to Use It
In this article
The SMALL function in Excel returns the k-th smallest value from a range or array. It is the tool you reach for when you need the second-lowest score, the third-cheapest price, or the five lowest readings from a sensor log without sorting the data. The syntax is =SMALL(array, k), where array is the range of numbers and k is the position from the bottom (1 for the smallest, 2 for the second smallest, and so on). You need Excel 2007 or later on Windows or Mac, or Excel for the web, and a range of numeric values. Nothing else is required.
What You'll Need
- Excel 2007 or newer on Windows or Mac, or Excel for the web. The SMALL function is unchanged across these versions.
- A worksheet containing a column or row of numbers, with no text or blanks inside the range you plan to reference (text is ignored, but blanks can shift the result in unexpected ways if you are counting positions).
- Basic familiarity with entering formulas and using the fill handle.
Step-by-Step
- Open your workbook and click the cell where you want the result to appear. Pick an empty cell outside your data range so the formula does not overwrite anything.
- Type =SMALL( to start the formula. Excel will show a tooltip listing the two arguments: array and k.
- Select the range of numbers. For example, click and drag from B2 to B20, or type B2:B20. The range can be a single column, a single row, or a rectangular block. If you select a block, SMALL treats all the numbers as one list, not row by row.
- Type a comma, then enter the value of k. Use 1 for the smallest number, 2 for the second smallest, 3 for the third smallest, and so on. For example, =SMALL(B2:B20,1) returns the lowest value in that range.
- Close the parenthesis and press Enter. The cell shows the k-th smallest number from the range.
- To build a ranked list, put the numbers 1, 2, 3, and so on in a column beside your data, then write =SMALL($B$2:$B$20,A2) where A2 contains the rank. Drag the fill handle down to fill the formula for each rank. The dollar signs lock the range so it does not shift as you copy.
- If you want the k-th smallest value that meets a condition, such as the lowest price for a specific product, use SMALL inside an array formula: =SMALL(IF($A$2:$A$20="Widget",$B$2:$B$20),1). In Excel 365 and Excel 2021 this works as a normal formula; in older versions press Ctrl+Shift+Enter. Alternatively, use =SMALL(IF(...),k) with the same logic, or switch to MINIFS if you only need the single lowest value that meets the condition.
- Format the result. Right-click the cell, choose Format Cells, and apply Number, Currency, or Percentage as appropriate so the output matches the rest of your sheet.
Common Mistakes
- Using k = 0 or a negative number. SMALL returns the #NUM! error if k is less than 1. Start counting at 1, not 0.
- Setting k larger than the number of numeric values. If your range has 10 numbers and you ask for the 11th smallest, Excel returns #NUM!. Count the numeric cells first, or wrap the formula in IFERROR to display a blank instead.
- Including text in the range. SMALL ignores text and logical values in a range reference, but if you type the values directly into the formula as an array (for example {1,"a",3}), text causes #VALUE!. Keep text out of the array argument.
- Forgetting to lock the range. When you copy the formula down a ranked list, a relative range like B2:B20 shifts to B3:B21, B4:B22, and so on. Use absolute references ($B$2:$B$20) to keep the range fixed.
- Confusing SMALL with MIN. MIN returns only the single lowest value. SMALL with k=1 gives the same answer, but SMALL with k=2, 3, and beyond gives you the rest of the ordered list.
- Expecting SMALL to sort the data. It returns a value; it does not rearrange your worksheet. If you need the data physically sorted, use Data > Sort instead.
Tips
- Combine SMALL with ROW() to build a self-numbering list: =SMALL($B$2:$B$20,ROW()-1) placed in row 2 returns the smallest, row 3 returns the second smallest, and so on.
- Use SMALL to find the n lowest values and then SUM them with =SUM(SMALL(range,{1,2,3})) entered as an array, or with SUMPRODUCT for older versions.
- Pair SMALL with INDEX and MATCH to return the name or label attached to the k-th smallest value, for example =INDEX($A$2:$A$20,MATCH(SMALL($B$2:$B$20,1),$B$2:$B$20,0)). This works cleanly only when the values are unique; duplicates return the first match.
- For the k-th largest value, use the LARGE function with the same arguments. LARGE(range,1) is the maximum, LARGE(range,2) the second highest.
- If your data contains blanks and you want to skip them, SMALL already ignores empty cells in a range reference. Just make sure k does not exceed the count of actual numbers.
- Wrap the formula in IFERROR to keep reports tidy: =IFERROR(SMALL(B2:B20,A2),""). This hides #NUM! errors when the rank exceeds the number of values.
Troubleshooting
- #NUM! error. Check that k is at least 1 and no larger than the count of numeric values in the range. Use =COUNT(range) to see how many numbers you actually have.
- #VALUE! error. This usually means the array argument contains text typed directly into the formula, or the range reference is malformed. Point to a clean range of numbers.
- Wrong value returned. Confirm the range is correct and that no hidden rows or filtered rows are being included unexpectedly. SMALL includes hidden rows; if you need to exclude them, use SUBTOTAL or AGGREGATE instead.
- Formula returns 0 unexpectedly. A zero in the range counts as a number, so it can legitimately be the smallest value. Check for cells containing 0 that you did not intend to include.
- Array formula not working in older Excel. If you are using IF inside SMALL to apply a condition, press Ctrl+Shift+Enter rather than Enter in Excel 2019 and earlier. In Excel 365 and Excel 2021, dynamic arrays handle it automatically.
- Result does not update. Press F9 to recalculate, or check that Calculation Options is set to Automatic under Formulas. Manual calculation mode is a common cause of stale results.
Frequently Asked Questions
What is the difference between SMALL and MIN?
MIN returns only the single lowest value in a range. SMALL returns the k-th lowest, so SMALL(range,1) equals MIN(range), but SMALL(range,2) gives the second lowest, which MIN cannot do.
Can SMALL handle text and blanks?
In a range reference, SMALL ignores text, logical values, and empty cells. It counts only numbers when determining the k-th position. Text inside an array constant typed directly into the formula causes a #VALUE! error.
How do I get the second smallest value in Excel?
Use =SMALL(range,2). Replace range with your actual cell range, such as B2:B20. The result is the second lowest number in that range.
Does SMALL work with conditions?
Yes, by nesting IF inside SMALL, for example =SMALL(IF(A2:A20="Widget",B2:B20),1). In Excel 365 and Excel 2021 this works as a normal formula; in older versions enter it with Ctrl+Shift+Enter. For a single conditional minimum, MINIFS is simpler.
Why does SMALL return #NUM!?
The k argument is either less than 1 or greater than the number of numeric values in the range. Check the count with =COUNT(range) and make sure k falls between 1 and that count.
Can I use SMALL across multiple sheets?
Yes. Reference a 3D range such as =SMALL(Sheet1:Sheet3!B2:B20,1) to pull the smallest value across the same cell range on several sheets. All referenced sheets must exist and contain numeric data in that range.