Ravindra BagaleCourses & study guides मराठी Track your progress

6. Tables, Sorting and Filtering

6.4 Sorting: Multi-level and Custom Sort

Steps in Excel

  1. Quick sort: click a cell in a column › Data › Sort & Filter › A→Z or Z→A (whole Table/range is sorted together).
  2. Multi-level: Data › Sort & Filter › Sort › Sort by City (A to Z) › Add Level › Then by Amount (Largest to Smallest) › Add Level › Then by Order Date (Oldest to Newest) › OK.
  3. Custom order: in the Sort dialog, Order › Custom List… › type Pune, Nashik, Nagpur, Sambhaji Nagar, Kolhapur, Solapur › Add › OK.
  4. Sort by colour or icon: Sort On › Cell Color / Font Color / Conditional Formatting Icon.
  5. Sort left to right: Sort dialog › Options… › Sort left to right.
  6. Formula alternative (Microsoft 365 / Excel 2021+): =SORT() / =SORTBY() – Module 9.

Worked example. Ravina's management report must list cities in business priority order (custom list above), within each city the highest orders first. Two levels – City (custom list), Amount (Largest to Smallest).

Ravindra Bagale's Tip

The most dangerous mistake: selecting only one column and sorting – Excel asks "Expand the selection?" and many students click "Continue with the current selection". Then the amounts end up on one side and the orders on the other – the data is ruined! Always click a single cell and sort, or use a Table.

Practice task

Sort tblOrders by Platform, then City in your custom order, then Delivery Mins (fastest first). Sort the Status column in the custom order Delivered, Returned, Cancelled.

Loading practice tasks...

  1. Total score (Easy): Add up Score in E2:E11. (sheet "Data")
  2. Average score (Easy): Average of Score in E2:E11, rounded to 1 decimal. (sheet "Data")
  3. West tickets (Easy): How many rows have Region "West"? (sheet "Data")
  4. Max score (Easy): Largest Score in E2:E11. (sheet "Data")
  5. High priority (Easy): How many rows have Priority "High"? (sheet "Data")
  6. West score (Medium): Total of Score where Region is "West". (sheet "Data")
  7. High score sum (Medium): Total of Score where Priority is "High". (sheet "Data")
  8. West high count (Medium): How many rows have Region "West" and Priority "High"? (sheet "Data")
  9. Score of T05 (Medium): Score for Ticket "T05". (sheet "Data")
  10. Unique regions (Hard): How many unique Region values? (sheet "Data")
  11. Share West score (Hard): West score / all score, 3 decimals. (sheet "Data")

Quick revision cards

Three standalone cards. Each one explains the idea with its own example. Scan the QR to open this lesson.

Revision card 1: What is Sorting Multi Level And Custom Sort?
Card 1: What is Sorting Multi Level And Custom Sort? · Download PNG
Revision card 2: Tiny example — Sorting Multi Level And Custom Sort
Card 2: Tiny example — Sorting Multi Level And Custom Sort · Download PNG
Revision card 3: Checklist — Sorting Multi Level And Custom Sort
Card 3: Checklist — Sorting Multi Level And Custom Sort · Download PNG