Excel - Sorting a Data Set by Customer Size: Excel Trick the Largest Customer at Top - Episode 755

308 views · Published 5 February 2009 · 2:04 · Indexed 20 September 2026

Channel: MrExcel.com · 2009 · Education

Watch on YouTube

Microsoft Excel Tutorial - Sorting a Data Set by Customer Size: Excel Trick the Largest Customer at Top.

Welcome back to the MrExcel netcast! In this video, we'll be discussing a question that came up in one of my Excel seminars - how to sort a large data set by customer, with the largest customer at the top. This may seem like a daunting task, but fear not, because I have an amazing trick to share with you.

First, we'll need to sort the customers in ascending order. To do this, simply click on one cell in the CUSTOMER column and click the AtoZ button. Next, we'll add subtotals by customer. Go to DATA, SUBTOTALS, and select "At each change in customer". Then, choose the SUM function for the REVENUE column and click OK. This will automatically add subtotals for each customer.

Now, here's where the magic happens. Press the number 2 button to show only one line per customer. This will make it easier to see the largest customer at the top. Then, select one cell in the REVENUE column and sort it in descending order. You'll notice that not only the subtotals, but also all of the individual rows, have been sorted. Press the number 3 button to see the largest customer at the top, followed by the rest in descending order.

Once you have the desired result, you can remove the subtotals by going to DATA, SUBTOTALS, and selecting "Remove All". And just like that, you have successfully sorted your data by the largest customer at the top. I hope this trick will save you time and effort in your future Excel projects.

Thank you for watching this netcast from MrExcel. Don't forget to like and subscribe for more helpful Excel tips and tricks. See you next time!

Buy Bill Jelen's latest Excel book: https://www.mrexcel.com/products/latest/

You can help my channel by clicking Like or commenting below: https://www.mrexcel.com/like-mrexcel-on-youtube/

Table of Contents:
(00:00) Introduction
(00:15) Sorting by customer
(00:25) Sorting trick
(00:35) Adding subtotals
(00:57) Pressing the number 2 button
(01:12) Sorting descending
(01:24) Pressing the number 3 button
(01:34) Removing subtotals
(01:44) Clicking Like really helps the algorithm

#excel #microsoft #microsoftexcel #exceltutorial #exceltips #exceltricks #excelmvp #freeclass #freecourse #freeclasses #excelclasses #microsoftmvp #walkthrough #evergreen #spreadsheetskills #analytics #analysis #dataanalysis #dataanalytics #mrexcel #spreadsheets #spreadsheet #excelhelp #accounting #tutorial 

This video answers these common search terms:
Add subtotals by customer Excel
Excel sort by customer
Excel tricks for sorting
Group and outline buttons Excel
Largest customer in Excel
Remove subtotals in Excel
Sort ascending in Excel
Sort descending in Excel
Sorting data in Excel
Sorting large data sets in Excel
Use SUM function in Excel

Join the MrExcel Message Board discussion about this video at https://www.mrexcel.com/board/threads/1152126/



You need to sort a detailed data set so that the records for the largest customer are at the top. Episode 755 will show you a quick way to accomplish this task.

More from this channel