Smart Systems for Home

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

Google Sheets LARGE Function: Usage and Examples

· 5 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 LARGE function in Google Sheets returns the k-th largest value from a dataset. For example, if you have a list of sales figures and want to find the 3rd highest sale, you use LARGE to specify the range of data and the number 3 as the rank. This is more flexible than the MAX function, which only returns the single highest value in a range.

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 cell references (e.g., A1:A10).

Step-by-Step

  1. Prepare Your Data: Ensure your numbers are in a clean column or row. The LARGE function ignores text and empty cells, but it requires at least one numerical value in the range to function. For this guide, assume your numbers are in cells A2 through A20.
  2. Select the Target Cell: Click on the cell where you want the result to appear. This is usually a summary cell outside of your main data range.
  3. Enter the Equals Sign: Type = to tell Google Sheets you are starting a formula.
  4. Type the Function Name: Type LARGE(. This opens the function and prepares it for the required arguments.
  5. Define the Data Range: While the parenthesis is open, highlight the cells containing your numbers with your mouse, or type the range manually (e.g., A2:A20). Follow this with a comma to move to the next argument.
  6. Specify the Rank (k): Type the number representing the position you want to retrieve. To find the absolute maximum, type 1. To find the second-highest value, type 2. For the third-highest, type 3, and so on.
  7. Close the Parenthesis and Execute: Type the closing parenthesis ) and press Enter. The cell will now display the specific value corresponding to that rank.
  8. Dynamic Ranking (Optional): Instead of typing a number for the rank, click on another cell that contains a number. For example, if cell B1 contains the number 5, your formula would look like =LARGE(A2:A20, B1). Changing the number in B1 will automatically update the result of the LARGE function.

Common Mistakes

One of the most frequent errors is attempting to use the LARGE function on a range that contains no numbers. If the range consists entirely of text or is completely empty, Google Sheets will return a #NUM! error because there is no numerical value to rank.

Another common mistake is requesting a rank (k) that exceeds the number of available data points. For instance, if your range only contains 10 numbers, but you set the rank to 11, the formula will fail. The rank must be a positive integer between 1 and the total count of numbers in the range.

Users also frequently confuse LARGE with MAX. While =LARGE(range, 1) is mathematically identical to =MAX(range), using MAX is more efficient if you only ever need the top value. The LARGE function is specifically intended for when you need the 2nd, 3rd, or 10th highest values.

Lastly, some users forget that the LARGE function does not remove duplicates. If your top three values are 100, 100, and 90, then =LARGE(range, 1) will return 100, and =LARGE(range, 2) will also return 100. It does not find the second unique highest value; it finds the value at that specific position in a sorted list.

Tips

To create a "Top 5" leaderboard automatically, you can combine the LARGE function with a sequence of numbers. Instead of writing five separate formulas, you can use an array formula or simply drag the formula down while referencing a column of numbers (1, 2, 3, 4, 5) as the rank argument.

If you need to find the k-th smallest value instead of the largest, use the SMALL function. It uses the exact same syntax as LARGE but works from the bottom of the list upward. This is useful for finding the lowest prices or the slowest lap times in a race.

To handle the duplicate issue mentioned earlier, you can wrap your range in a UNIQUE function. For example, =LARGE(UNIQUE(A2:A20), 2) will ignore duplicate values and give you the second-highest unique number in the set.

You can integrate LARGE into an IF statement to trigger alerts. For example, if you want a cell to say "Alert" only if a value is among the top 3 highest in a list, you can use a formula like =IF(B2 >= LARGE(A2:A20, 3), "Alert", "Normal").

Troubleshooting

If your formula is not working, first check for the #NUM! error. This almost always means your rank (k) is larger than the number of values in your range, or your range contains no numbers. Count your data points and ensure your rank is within that limit.

If you see a #VALUE! error, check that your rank argument is actually a number. If you accidentally pointed the rank argument to a cell containing text, the function cannot calculate a position and will error out.

If the result seems incorrect, check for "numbers stored as text." Sometimes data imported from other software looks like a number but is formatted as text. Google Sheets ignores text in the LARGE function. To fix this, highlight your data, go to the Format menu, select Number, and choose Number. If the values are aligned to the left of the cell, they are likely text; if they are aligned to the right, they are numbers.

If the formula is returning the same number multiple times, remember that LARGE counts every instance of a value. To see if this is happening, sort your data range from Z to A. If the first three values are identical, the LARGE function will return that same value for ranks 1, 2, and 3.

Frequently Asked Questions

Can the LARGE function work across multiple sheets?

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

Does the LARGE function update automatically?

Yes. Whenever you change a value within the specified range, Google Sheets recalculates the LARGE function and updates the result instantly.

Can I use a decimal for the rank argument?

No. The rank (k) must be a whole number. If you provide a decimal, Google Sheets will typically truncate it or return an error depending on the context, but it will not find a "fractional" rank.

How do I find the average of the top 3 values?

You can combine AVERAGE and LARGE using an array constant. The formula would be =AVERAGE(LARGE(A2:A20, {1,2,3})). This tells Sheets to find the 1st, 2nd, and 3rd largest values and then average them.

Does the LARGE function work with dates?

Yes, because Google Sheets stores dates as numbers. Using LARGE on a range of dates will return the most recent date (the "largest" number).