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

Module Seven

๐Ÿ“– 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.
9

Module 7: Best Practices for Data Sorting and Filtering

1. Introduction

In the previous modules, we learned how to sort and filter data in Microsoft Excel and how these skills are used in schools, businesses, hospitals, banks, and digital marketing.

However, knowing how to sort and filter data is not enough. You must also understand how to do it correctly to avoid mistakes and protect your information.

Imagine you are managing a supermarket in Lagos. You have a spreadsheet containing 2,000 products. You want to arrange the products according to their prices, from the cheapest to the most expensive.

If you sort only the Price column instead of the entire dataset, the product names may no longer match their correct prices. This can cause serious problems for the business.

In this module, you will learn the best practices for sorting and filtering data safely and accurately.

2. Always Use Clear Column Headings

Every dataset should have clear column headings. Column headings tell you what type of information is stored in each column.

For example, a supermarket sales spreadsheet may contain:

Product Category Price (โ‚ฆ) Quantity
RiceFood5,50020
MilkDrinks2,50015
BreadFood1,50030

These headings help Excel identify the information in each column.

Best practice: Use short, meaningful headings such as Product, Price, Date, Quantity, and Category.

3. Select the Entire Dataset Before Sorting

One of the most common mistakes beginners make is sorting only one column instead of the entire dataset.

When you sort a dataset, the information in each row must remain together.

Example

Consider this student record:

Student Class Score
TundeJSS 165
AmakaJSS 290
MusaJSS 355

Suppose you want to arrange the students according to their scores.

You should select the entire dataset or click inside it before using the Sort command. If Excel asks whether to expand the selection, choose Expand the selection.

This ensures that each student's name, class, and score remain together.

Remember: Never sort a single column independently when the other columns contain related information.

4. Use the Correct Data Format

Excel works better when information is stored in the correct format.

For example:

  • Prices should be stored as numbers.
  • Dates should be stored as actual Excel dates.
  • Names should be stored as text.
  • Quantities should be stored as numbers.

Imagine you have the following prices:

Product Price
Rice5000
Beans2500
Milk1200

If some prices are accidentally stored as text, Excel may not sort them as expected.

Best practice: Check that numbers, dates, and text are stored in the correct formats before sorting or filtering.

5. Avoid Blank Rows and Columns Inside Your Dataset

Blank rows and columns can make it difficult for Excel to recognise the full range of your data.

For example, consider this dataset:

ProductPrice
Rice5,000
Beans3,000
Milk2,000

The empty row may cause Excel to treat the information above and below it as separate data ranges when you apply sorting or filtering.

Best practice: Remove unnecessary blank rows and columns within your dataset before sorting and filtering.

6. Clear Filters Before Starting a New Search

Sometimes, you may forget that a filter is still active in your spreadsheet.

For example, you may have filtered a supermarket list to show only Food products. Later, you decide to search for Drinks but forget to clear the previous filter.

You may not see the results you expect.

To clear a filter:

  1. Click the filter dropdown in the column.
  2. Select Clear Filter From....

You can also open the Data tab and select Clear to remove active filters from the dataset.

Best practice: Always check whether another filter is active before starting a new search.

7. Keep a Backup of Important Data

Before making major changes to important spreadsheets, it is a good idea to keep a backup copy.

For example, if you are managing customer records for a business, you should save an original copy before sorting or making other changes.

To create a copy:

  1. Open your Excel workbook.
  2. Click File.
  3. Select Save As.
  4. Choose a folder.
  5. Give the new file a different name.
  6. Click Save.

You can name the original file Sales Records Original.xlsx and the working copy Sales Records Updated.xlsx.

Best practice: Keep backups of important information, especially when working with business, financial, or customer records.

8. Protect Sensitive Information

Some datasets contain private information about people and businesses.

Examples include:

  • Customer phone numbers.
  • Bank account information.
  • Students' personal records.
  • Patients' medical information.
  • Employees' salary details.

Sorting and filtering do not automatically protect private information. You must ensure that only authorised people can access sensitive records.

Best practice: Do not share private spreadsheets with people who are not authorised to view them. Use appropriate file permissions and password protection where necessary.

9. Practical Exercise: Organising a Business Dataset

Imagine you work as a data assistant for a supermarket in Ibadan. Your manager gives you the following product records:

Product Category Price (โ‚ฆ) Stock
RiceFood5,50020
MilkDrinks2,5008
BeansFood4,00015
BreadFood1,5005
JuiceDrinks2,00030

Your Activities

  1. Sort the products from the cheapest to the most expensive.
  2. Sort the products from the highest stock quantity to the lowest.
  3. Filter the dataset to display only Food products.
  4. Filter the Stock column to display products with fewer than 10 items.
  5. Clear all filters and display the complete dataset again.

Questions

  1. Why should you select the entire dataset before sorting?
  2. Why are clear column headings important?
  3. What can happen if a dataset contains blank rows?
  4. Why should you keep a backup of important spreadsheets?
  5. Why should sensitive information be protected?

10. Common Mistakes to Avoid

When working with Excel sorting and filtering, avoid these common mistakes:

  • Sorting only one column when the data is connected to other columns.
  • Using unclear or missing column headings.
  • Mixing numbers and text in the same data column unnecessarily.
  • Leaving unnecessary blank rows inside a dataset.
  • Forgetting to clear old filters.
  • Making changes to important records without keeping a backup.
  • Sharing confidential information with unauthorised people.

Module Summary

In this module, you learned the best practices for sorting and filtering data in Microsoft Excel.

You learned how to:

  • Use clear column headings.
  • Select the entire dataset before sorting.
  • Maintain correct data formats.
  • Avoid blank rows and columns.
  • Clear old filters before a new search.
  • Keep backup copies of important data.
  • Protect sensitive information.

Key Takeaway: Good data management is not just about finding information. It is also about keeping information accurate, organised, safe, and reliable.

Congratulations! You have completed the Data Sorting and Filtering course. Continue practising with different datasets to improve your Excel skills.

๐Ÿ† 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.
โ†’