In the previous module, you learned how to sort names alphabetically, arrange numbers, and organise dates in Microsoft Excel.
Sometimes, basic sorting is not enough. Imagine a school has 500 students from different classes. The school wants to arrange students by class and then arrange their examination scores from highest to lowest within each class.
This is where advanced sorting techniques become useful.
Advanced sorting allows you to organise information using multiple columns, custom lists, and cell colours.
Sorting by multiple columns means arranging information using more than one column at the same time.
For example, imagine a school has the following examination records:
| Student Name | Class | Score |
|---|---|---|
| Ada | JSS 1 | 75 |
| John | JSS 2 | 85 |
| Musa | JSS 1 | 95 |
| Grace | JSS 2 | 70 |
| Peter | JSS 1 | 60 |
| Mary | JSS 2 | 90 |
The school wants to arrange students by class first and then arrange their scores from highest to lowest.
| Student Name | Class | Score |
|---|---|---|
| Musa | JSS 1 | 95 |
| Ada | JSS 1 | 75 |
| Peter | JSS 1 | 60 |
| Mary | JSS 2 | 90 |
| John | JSS 2 | 85 |
| Grace | JSS 2 | 70 |
Excel first groups students by class and then arranges their scores from highest to lowest within each class.
Custom sorting allows you to arrange information according to a special order that you choose instead of using the normal alphabetical or numerical order.
For example, a school may want to organise students according to their academic levels in this order:
You can create a custom sorting order in Excel to achieve this.
Custom sorting is useful when information must follow a particular sequence.
Microsoft Excel allows you to sort information based on the background colour of cells.
Imagine a teacher uses different colours to identify students' performance:
The teacher can arrange the records so that students with green-coloured scores appear first.
Excel will arrange the records according to the selected cell colour.
Font colour refers to the colour of the text inside a cell.
For example, a business may use red text to identify overdue payments and green text to identify payments that have been completed.
Excel allows users to sort records according to these font colours.
Sometimes information follows a special order that is not alphabetical or numerical.
For example, the days of the week should normally appear in this order:
Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.
When sorted alphabetically, the days will appear in a different order. Custom lists help Excel arrange them in their normal sequence.
| Basic Sorting | Advanced Sorting |
|---|---|
| Sorts information using one column. | Can sort information using multiple columns. |
| Uses simple alphabetical and numerical orders. | Supports custom sorting orders. |
| Usually sorts by values or dates. | Can sort by cell colour and font colour. |
| Suitable for simple datasets. | Useful for more detailed datasets. |
Imagine you work as a school administrator. Your school has the following student records:
| Name | Class | Score |
|---|---|---|
| Ada | JSS 1 | 75 |
| John | JSS 2 | 85 |
| Musa | JSS 1 | 95 |
| Grace | JSS 2 | 70 |
| Peter | JSS 1 | 60 |
| Mary | JSS 2 | 90 |
Complete the following activities in Microsoft Excel:
In this module, you have learned that:
Advanced sorting gives you more control over your data. You can organise information using multiple conditions, colours, and custom orders to make large datasets easier to understand.