How to find Top or Bottom N values in Excel?
Last Updated :
24 Jun, 2024
Excel provides powerful functions to find the top or bottom N values in a dataset, making data analysis much easier. The functions used to find the Nth largest and Nth smallest numbers are =LARGE(array, k)
and =SMALL(array, k)
, respectively. In this article, we will explore how to use these functions effectively, along with a deeper understanding of cell references.
How to find Top or Bottom N values in Excel?Understanding Cell ReferenceÂ
Before understanding the LARGE and SMALL functions. We first need to have a fine knowledge of cell references. A cell reference is of two types:Â
1. Relative ReferenceÂ
Relative reference is the reference that changes with cells.
- If we try dragging the same formula down across a column then numbers will increase.
- If we try dragging the same formula side across a row, then the alphabets will increase.Â
Example: Calculating Total Marks:
Consider a data set of Students with their Physics and Math marks. Calculate the total marks.Â

Steps for finding the total with Relative Reference
Step 1: Write a formula for sum i.e. "= SUM(value1, value2)" and press Enter.Â

Step 2: Try dragging the same formula downward and hence we get the sum of all students.Â

Step 3: Go to Formula Tab and click on Show Formulas. Now, all the formulas of the given worksheet will appear.Â

Step 4: We find in range E3:E9 that the values inside the functions are increasing as we go downward in a row. For Example: in cell E3, the formula is =SUM(C3, D3) and in cell E4, the formula is =SUM(C4, D4).Â

2. Absolute ReferenceÂ
The absolute reference remains static even if the rows or columns are changing. There can be two ways to make a selected cell with absolute reference:
- Use $ symbol: Write $ after each and every character of the selected cells.
- Use F4: Press Fn + F4 on your keyboard to make absolute reference to a selected cell.
Consider the same data set as above. Try using the same formula for total but with absolute reference.Â
Steps of finding total with absolute reference
Step 1: Considering the same data set and write the function with absolute reference.Â

Step 2: Now, go to Formulas Tab and click on Show Formulas. All formulas of the given worksheet appear.Â

Step 3: We observe that while going downward in a row the selected cells remain the same.Â

How to Find Top N values in Excel
Given a data set of Students and their Marks. Try finding the highest 3 marks scored by students.Â

Steps for finding Top N values
Step 1: Use = LARGE(Array, k) function to have kth largest number in an array. Press Enter.Â
where,
- Array: It is the first argument of the LARGE function. We need to provide an absolute reference for this array.
- k: It is the second argument of the LARGE function. It specifies which largest number you want. We will provide a relative reference to this number.

Step 2: You will get the kth largest number from the array. Now, drag down till the N numbers you want. For example: drag down to 3 cells for the given data set.Â

Step 3: You have obtained the highest 3 marks scored by students.Â

How to Find Bottom N values in Excel
Consider the same data set of Students and their Marks. Try finding the lowest 3 marks obtained by students.Â
Steps for finding Bottom N values
Step 1: Use = SMALL(Array, k) function to have kth smallest number in an array. For example, if the value of k is 1, then the function will return the smallest number in the array. If the value of k is 2, then the function will return the second smallest number in the array. Press Enter.
where,Â
- Array: It is the first argument of the SMALL function. We need to provide an absolute reference for this array.
- k: Â It is the second argument of the SMALL function. It specifies which smallest number you want. We will provide a relative reference to this number.

Step 2: You will get the kth smallest number from that array. Now, drag down till the N numbers you want. For example: drag down to 3 cells for the given data set.Â

Step 3: You have obtained the lowest 3 marks scored by students.Â

Additional Tips for Using LARGE and SMALL Functions
- Combining with Other Functions: You can combine
LARGE
and SMALL
with other functions like IF
to add more complex conditions. - Dynamic Arrays: Use dynamic array formulas for larger datasets to make your calculations more efficient.
- Sorting Data: While
LARGE
and SMALL
functions help find specific values, sorting your data can also give you a quick overview of the highest and lowest values.
Conclusion
In conclusion, understanding and using the LARGE
and SMALL
functions in Excel can significantly enhance your data analysis capabilities. By mastering cell references and knowing how to apply these functions, you can efficiently find the top and bottom N values in any dataset in Excel.
Similar Reads
How to Find the Last Used Row and Column in Excel VBA? We use Range.SpecialCells() method in the below VBA Code to find and return details of last used row, column, and cell in a worksheet. Sample Data: Sample Data Syntax: expression.SpecialCells (Type, Value) Eg: To return the last used cell address in an activesheet. ActiveSheet.Range("A1").SpecialCel
2 min read
Lookup Top N Values Ignoring Duplicates in Excel Excel is one of the best ways to organize and present a large amount of data. However, finding data in excel requires certain commands. In order to lookup top N values ignoring duplicates, it is important to first learn how to find top N values in Excel. Top N values mean finding the largest value,
2 min read
How to Find Outliers in Excel? Outliers as the name suggest are something that doesn't fall in the required/given range. Outliers in statistics need to be removed because they affect the decision that is to be made after performing the required calculations. Outliers generally make the decision skewed i.e they move the decision i
4 min read
How to Sort by Number in Excel? Excel is the world where you can organise your data. Organising data is a very big task especially when you are doing it on a large scale. In Excel, one can have around 17 million cells in one worksheet. So at this point, arranging the data in a systematic order is very important. If you are curious
2 min read
How to Get the Top 10 Values in PL/SQL? PL/SQL stands for Procedural Language/ Structured Query Language. It has block structure programming features. PL/SQL supports SQL queries. PL/SQL contains a declaration section, execution section, and exception-handling section. Declare and exception handling sections are optional.This article expl
6 min read