In this article, we will learn How to Display the Top/Bottom N Items in Excel.
Pivot table is the most popular tool to calculate, analyse and summarize the whole data. But here the problem is to extract top 10 or bottom 10 items. For example getting the top 10 salespeople who sold the most products or getting to know the bottom 10 salespeople who sold the least products in a company. Or it could be finding the top 10 customers who bought the most products. For these kind of problems we use a pivot table and its row label fields.
Pivot table in Excel
Create a pivot table
Select the data with labels (column names) > Insert tab > Pivot table > Select same worksheet or new worksheet > Click OK
Top 10 Items
In Pivot table
Select row label option > Value filters > Top 10
All of these might be confusing to understand. Let's understand how to use the function using an example. Here we have some products and their quantities sold from the store. Now we need to get the top 10 selling products.
Follow the steps
First we make a pivot table for the data. Select the data with labels (A1:B25) > Go to Insert tab > Select Pivot table > Select same worksheet or new worksheet > Click OK
Drop Items into rows and Sum of Quantity to Values
You will get the table as shown below
As you can see all the products. This pivot table has 11 rows which means 11 items but we need only top 10 items. To obtain the desired number of items based on sum of quantity.
Now Select the drop down list on the Row labels cell and Select Value Filters > Top 10
Then Sort items descending on the basis of Sum of Quantity sold. Your table will be as shown below.
As you can see now we got only 10 items having the most sold products from the store. Now we learn how to get bottom 10 values on pivot table
Bottom 10 items
In Pivot table
Select row label option > Value filters > Bottom 10
Sort the items ascending on the basis of sum of quantity
Here are all the observational notes using the formula in Excel
Hope this article about How to Display the Top/Bottom N Items in Excel is explanatory. Find more articles on calculating values and related Excel formulas here. If you liked our blogs, share it with your friends on Facebook. And also you can follow us on Twitter and Facebook. We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write to us at email@example.com.
Related Articles :
Excel Pivot Tables : Pivot tables are one of the most powerful tools and one who knows all the features of pivot tables can increase his productivity exponentially. In this article we will learn all about pivot tables in detail.
How to use the Dynamic Pivot Table in Excel : To create a dynamic pivot table we use named ranges and tables in excel. But that is not all. A dynamic pivot table will reduce work of data maintenance and it will consider all newly added data as the source data.
How to Refresh Pivot Charts : To refresh a pivot table we have a simple button of refresh pivot table in the ribbon. Or you can right click on the pivot table. Here's how you do it.
Conditional Formatting for Pivot Table : Conditional formatting in pivot tables is the same as the conditional formatting on normal data. But you need to be careful while conditional formatting pivot tables as the data changes dynamically.
How to get subtotal grouped by date using GETPIVOTDATA function in Excel : This is a special function that is specially used to work with data from pivot tables. It is used to retrieve values from pivot tables using the table columns and rows headers.
Popular Articles :
How to use the IF Function in Excel : The IF statement in Excel checks the condition and returns a specific value if the condition is TRUE or returns another specific value if FALSE.
How to use the VLOOKUP Function in Excel : This is one of the most used and popular functions of excel that is used to lookup value from different ranges and sheets.
How to use the SUMIF Function in Excel : This is another dashboard essential function. This helps you sum up values on specific conditions.
How to use the COUNTIF Function in Excel : Count values with conditions using this amazing function. You don't need to filter your data to count specific values. Countif function is essential to prepare your dashboard.
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.