Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† Data Filtering and Sorting ยท Lesson 6 of 10

Module Four

๐Ÿ“– Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
6

Module 4: Advanced Data Sorting Techniques in Excel

4.1 Introduction to Advanced Data Sorting

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.

4.2 Sorting Data by Multiple Columns

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
AdaJSS 175
JohnJSS 285
MusaJSS 195
GraceJSS 270
PeterJSS 160
MaryJSS 290

The school wants to arrange students by class first and then arrange their scores from highest to lowest.

Steps to Sort by Multiple Columns

  1. Open your dataset in Microsoft Excel.
  2. Select any cell inside the dataset.
  3. Click the Data tab.
  4. Click the Sort button.
  5. Tick My data has headers.
  6. Under Sort by, select Class.
  7. Choose A to Z as the order.
  8. Click Add Level.
  9. Under Then by, select Score.
  10. Choose Largest to Smallest.
  11. Click OK.

Expected Result

Student Name Class Score
MusaJSS 195
AdaJSS 175
PeterJSS 160
MaryJSS 290
JohnJSS 285
GraceJSS 270

Excel first groups students by class and then arranges their scores from highest to lowest within each class.

4.3 Understanding Custom Sorting

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:

  1. Primary
  2. Junior Secondary
  3. Senior Secondary

You can create a custom sorting order in Excel to achieve this.

Steps to Create a Custom Sort Order

  1. Select a cell inside your dataset.
  2. Click the Data tab.
  3. Click Sort.
  4. Select the column you want to sort.
  5. Under Order, choose Custom List.
  6. Select an existing list or create a new list.
  7. Enter your preferred order if creating a new list.
  8. Click OK to apply the custom order.

Custom sorting is useful when information must follow a particular sequence.

4.4 Sorting by Cell Colour

Microsoft Excel allows you to sort information based on the background colour of cells.

Imagine a teacher uses different colours to identify students' performance:

  • Green represents excellent performance.
  • Yellow represents average performance.
  • Red represents poor performance.

The teacher can arrange the records so that students with green-coloured scores appear first.

Steps to Sort by Cell Colour

  1. Select a cell inside the dataset.
  2. Click the Data tab.
  3. Click Sort.
  4. Select the column containing the coloured cells.
  5. Under Sort On, choose Cell Colour.
  6. Select the colour you want to display first.
  7. Choose On Top or On Bottom.
  8. Click OK.

Excel will arrange the records according to the selected cell colour.

4.5 Sorting by Font 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.

Steps to Sort by Font Colour

  1. Select a cell inside your dataset.
  2. Open the Data tab.
  3. Click Sort.
  4. Select the column containing the coloured text.
  5. Under Sort On, select Font Colour.
  6. Choose the font colour you want to appear first.
  7. Select On Top or On Bottom.
  8. Click OK.

4.6 Sorting Data Using Custom Lists

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.

Other Examples of Custom Lists

  • Months: January to December.
  • School terms: First Term, Second Term, Third Term.
  • Priority levels: High, Medium, Low.
  • Academic levels: Primary, Junior Secondary, Senior Secondary.

4.7 Difference Between Basic and Advanced Sorting

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.

4.8 Practical Exercise

Imagine you work as a school administrator. Your school has the following student records:

Name Class Score
AdaJSS 175
JohnJSS 285
MusaJSS 195
GraceJSS 270
PeterJSS 160
MaryJSS 290

Complete the following activities in Microsoft Excel:

  1. Enter all the records into an Excel worksheet.
  2. Sort the students by class from A to Z.
  3. Add a second sorting level to arrange scores from highest to lowest.
  4. Create a custom list for school terms.
  5. Apply different cell colours to some scores.
  6. Sort the records according to cell colour.

4.9 Module Summary

In this module, you have learned that:

  • Advanced sorting helps organise complex datasets.
  • Multiple-column sorting arranges information using more than one column.
  • Custom sorting allows you to create your own sorting order.
  • Excel can sort information according to cell colour.
  • Excel can sort information according to font colour.
  • Custom lists help arrange information in a special sequence.

Key Lesson

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.

๐Ÿ† Get Certified

๐Ÿ”’

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (โ‚ฆ2,000 or 20,000 coins), and get a verified certificate with your name on it.

๐ŸŽ“ Sign Up to Get Certified
๐Ÿ› ๏ธ Practice Tools
Hands-on simulators & labs - subscription required.
โ†’
๐ŸŽฏ Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
โ†’