Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Google Sheets SMALL Function: Usage and Examples

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The Google Sheets SMALL function allows you to find the k-th smallest value in a data set. Unlike the MIN function, which only returns the absolute lowest number, SMALL lets you specify a rank—such as the 2nd smallest, 3rd smallest, or 10th smallest value—making it essential for creating leaderboards, analyzing bottom-tier performance, or managing tiered pricing structures. To use it, you enter the formula =SMALL(data, k), where "data" is your range of numbers and "k" is the position from the bottom you want to retrieve.

What You'll Need

  • A Google account with access to Google Sheets.
  • A dataset containing numerical values (integers, decimals, or percentages).
  • A basic understanding of how to select cell ranges (e.g., A1:A10).

Step-by-Step

  1. Prepare Your Data: Ensure your numbers are organized in a column or row. For example, if you are tracking student test scores, place the scores in cells A2 through A20. Ensure there are no text strings inside this range that are meant to be numbers, as this can sometimes lead to unexpected results depending on how the data was imported.
  2. Select the Destination Cell: Click on the empty cell where you want the result to appear. This is typically a cell outside your main data range to avoid circular dependency errors.
  3. Start the Formula: Type =SMALL( into the cell. This tells Google Sheets you are initiating the function to find a specific ranked value.
  4. Define the Data Range: While the parenthesis is open, highlight the range of cells containing your numbers with your mouse, or type the range manually (e.g., A2:A20). Follow this with a comma to separate the range from the rank.
  5. Specify the Rank (k): Enter the number representing the position you want to find. If you want the absolute smallest value, enter 1. If you want the second smallest value, enter 2. For example, the formula =SMALL(A2:A20, 2) will return the second lowest score in that list.
  6. Close and Execute: Type the closing parenthesis ) and press Enter. The cell will now display the value corresponding to the rank you requested.
  7. Dynamic Ranking (Optional): Instead of typing a number for "k", you can click on another cell that contains a number. For example, if cell B1 contains the number 3, and you use =SMALL(A2:A20, B1), the formula will return the 3rd smallest value. If you change B1 to 4, the result will automatically update to the 4th smallest value.

Common Mistakes

One of the most frequent errors is the #NUM! error. This happens when the value of "k" is less than 1 or greater than the total number of values in your range. For instance, if your data range only has 10 numbers but you ask for the 11th smallest value =SMALL(A2:A11, 11), Google Sheets cannot find a value at that position and will return an error. Always ensure your rank is within the bounds of your dataset size.

Another common mistake is including non-numeric data. While the SMALL function generally ignores text and empty cells, if your range contains cells that look like numbers but are formatted as text (often indicated by a small green triangle or left-alignment), the function may ignore them entirely. This can lead to a result that seems incorrect because the function is skipping values it doesn't recognize as numbers.

Users also frequently confuse SMALL with MIN. While =SMALL(A1:A10, 1) is mathematically identical to =MIN(A1:A10), using MIN is faster for the absolute lowest value. The mistake occurs when users try to use MIN to find the second or third lowest value, which is impossible without the SMALL function.

Tips

Creating a Ranked List: If you want to list the bottom five values in order, you don't have to write five separate formulas. Write =SMALL($A$2:$A$20, 1) in the first cell. In the cell below it, use =SMALL($A$2:$A$20, 2). By using absolute references (the dollar signs), you can drag the formula down, though you will need to manually update the rank number or use the ROW() function to automate the rank. For example, =SMALL($A$2:$A$20, ROW(A1)) will return the 1st smallest value in the first row, and as you drag it down, ROW(A2) will return the 2nd smallest, and so on.

Handling Duplicates: It is important to understand how SMALL handles duplicate numbers. If your dataset is {10, 20, 20, 30}, =SMALL(range, 1) is 10, =SMALL(range, 2) is 20, and =SMALL(range, 3) is also 20. The function does not skip duplicates; it treats every instance of a number as a unique position in the rank.

Combining with IF: You can use SMALL within an IF statement to trigger alerts. For example, if you want to highlight a cell if it is among the bottom three values, you can use a conditional formatting rule with a formula like =A2<=SMALL($A$2:$A$20, 3). This tells the sheet to apply formatting if the value in A2 is less than or equal to the 3rd smallest value in the entire set.

Troubleshooting

If your formula is not returning the expected result, follow these steps in order:

  1. Check for #NUM! Errors: Verify that your "k" value is a positive integer and does not exceed the count of numbers in your range. Use =COUNT(A2:A20) in a separate cell to see exactly how many numbers Google Sheets is actually detecting in your range.
  2. Verify Data Types: If the result seems wrong, check if some numbers are formatted as text. Select your data range, go to the Format menu > Number, and select "Number". This forces the cells into a numeric format that the SMALL function can read.
  3. Clear Hidden Characters: Sometimes data imported from websites contains hidden spaces. Use the =TRIM() function or Find and Replace (Ctrl+H) to remove unexpected spaces that might be turning your numbers into text strings.
  4. Check for Circular Dependencies: Ensure the cell where you are writing the formula is not part of the range the formula is analyzing. If you put =SMALL(A1:A10, 1) inside cell A5, the formula will fail because it is trying to calculate its own value.

Frequently Asked Questions

Can the SMALL function work across multiple sheets?

Yes. You can reference a range on another sheet by including the sheet name followed by an exclamation point. For example: =SMALL(Sheet2!A2:A100, 1).

Does SMALL ignore blank cells?

Yes, the SMALL function automatically ignores empty cells and cells containing text. It only counts cells that contain numerical values when determining the rank.

What is the difference between SMALL and LARGE?

While SMALL finds the k-th smallest value (starting from the bottom), LARGE finds the k-th largest value (starting from the top). For example, =LARGE(range, 1) is the same as =MAX(range).

Can I use a decimal for the rank (k)?

No. The rank "k" must be a whole number. If you enter a decimal, Google Sheets will typically return a #NUM! error because there is no "1.5th" smallest position in a list.

How do I find the median using SMALL?

While the =MEDIAN() function is easier, you can technically find the median using SMALL if you know the middle position of your dataset. If you have 11 items, the median is the 6th smallest value: =SMALL(range, 6).