Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† Data Visualization with Excel ยท Lesson 4 of 9

Module Three

๐Ÿ“– 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.
4
Module 2: Preparing Data for Visualization in Excel

Module 2: Preparing Data for Visualization in Excel

2.1 Introduction to Data Preparation

Before creating charts and dashboards in Microsoft Excel, you need to prepare your data. Data preparation means organising, checking, and correcting information so that it is ready for analysis and visualization.

Imagine that you own a supermarket in Ibadan. You want to create a chart showing how many bags of rice, beans, and cartons of spaghetti you sold in one month.

However, your sales records contain missing prices, repeated transactions, spelling mistakes, and numbers stored as text. If you create a chart without checking the information, your results may be incorrect.

Remember:

Good charts begin with good data. Always prepare and check your information before creating visual reports.

2.2 Understanding Rows, Columns, and Cells

Excel organises information using rows, columns, and cells. Understanding these three parts will help you arrange your data correctly.

  • Rows: These run horizontally across a worksheet. They are identified by numbers such as 1, 2, 3, and 4.
  • Columns: These run vertically. They are identified by letters such as A, B, C, and D.
  • Cells: These are the boxes where you enter information. Each cell has an address, such as A1 or B3.

Example of an Excel Worksheet

Product Quantity Price
Rice 20 โ‚ฆ80,000
Beans 15 โ‚ฆ45,000
Spaghetti 30 โ‚ฆ60,000

In this example, Product, Quantity, and Price are column headings. Each product record is entered in a separate row.

For a well-organised dataset, use clear column headings, keep each row as one record, and avoid unnecessary blank rows or columns inside the data.

2.3 Organising Data in Excel Tables

An Excel Table is a structured way of organising information. It makes your data easier to manage, filter, format, and use when creating charts.

How to Create an Excel Table

  1. Open Microsoft Excel.
  2. Enter your information into rows and columns.
  3. Make sure each column has a heading.
  4. Select any cell inside your data.
  5. Press Ctrl + T on your keyboard, or select Insert and then Table.
  6. Check that the correct data range is selected.
  7. Tick the option that says My table has headers if your first row contains headings.
  8. Click OK.

Excel will format your information as a table. You can also use the filter arrows in the headings to sort and filter records.

Practical Tip:

Give your Excel table a meaningful name, such as SalesData or StudentRecords. You can change the table name from the Table Design tab.

2.4 Cleaning Data Before Creating Charts

Data cleaning means finding and correcting problems in a dataset. These problems may include spelling mistakes, missing information, incorrect numbers, extra spaces, and duplicate records.

For example, imagine a supermarket records the same product as "Rice", "rice", and "RICE". Excel may treat these as different text entries in some charts and summaries.

Common data cleaning activities include:

  • Correcting spelling mistakes.
  • Removing unnecessary spaces.
  • Checking incorrect numbers and dates.
  • Identifying missing values.
  • Checking for duplicate records.
  • Making category names consistent.

Example: Incorrect Product Names

Before Cleaning After Cleaning
rice Rice
RICE Rice
Rice Rice

The aim is to make sure that the same product is recorded consistently. This helps Excel group the information correctly.

2.5 Removing Duplicate Records

A duplicate record is information that appears more than once when it should only appear once. Duplicates can affect your calculations and charts.

Imagine a school records the same student twice in a list of registered students. If you count the records without checking, the school may think it has more students than it actually has.

How to Remove Duplicates in Excel

  1. Select your data or click inside your Excel Table.
  2. Open the Data tab.
  3. Click Remove Duplicates.
  4. Select the columns Excel should use to identify duplicate records.
  5. Click OK.
  6. Excel will report how many duplicate values were removed.
Important Warning:

Be careful when removing duplicates. Two students may have the same name but be different people. Use a unique student ID or the correct combination of columns to identify records. Make a copy of your data before removing records if you are unsure.

2.6 Handling Missing and Incorrect Values

Sometimes a dataset contains empty cells or incorrect information. These problems should be checked before creating charts.

Consider this example:

Student Score
Tunde 85
Amina [Blank]
David 72

Amina's score is missing. You should not automatically enter zero or guess the score. First, check the original examination record or ask the person responsible for the information.

Here are some ways to handle missing information:

  • Check the original source to find the correct value.
  • Leave the cell blank if the information is genuinely unavailable.
  • Use an appropriate label such as "Not Available" where suitable for text fields.
  • Remove a record only when you have a valid reason to exclude it.
  • Document any changes made to the dataset.

2.7 Sorting and Filtering Data

Sorting and filtering help you organise and find information in Excel.

Understanding Sorting

Sorting means arranging information in a particular order. You can sort text alphabetically, numbers from smallest to largest, or dates from oldest to newest.

Examples of sorting include:

  • Arranging student names from A to Z.
  • Arranging examination scores from highest to lowest.
  • Arranging sales dates from oldest to newest.
  • Arranging product prices from lowest to highest.

How to Sort Data

  1. Select a cell in the column you want to sort.
  2. Open the Data tab.
  3. Choose Sort A to Z or Sort Smallest to Largest.
  4. Choose the reverse option if you want descending order.
  5. For more control, select Sort to choose a column and sorting order.

Understanding Filtering

Filtering means displaying only the records that match the conditions you choose. It does not normally delete the other records; it temporarily hides records that do not match the filter.

For example, a supermarket owner may want to see only products with sales above โ‚ฆ50,000.

How to Filter Data

  1. Click inside your Excel Table or select your data range.
  2. Open the Data tab.
  3. Click Filter if filter arrows are not already displayed.
  4. Click the arrow beside the column heading you want to filter.
  5. Select the values or conditions you want to display.
  6. Click OK.
Remember the Difference:

Sorting changes the order of records. Filtering displays only the records that match your selected conditions.

2.8 Formatting Numbers, Dates, and Text

Formatting helps make information clear and consistent. Excel allows you to display numbers, dates, percentages, and currency values in different ways.

Common Data Formats

Format Example Purpose
Number 1,500 General numerical values
Currency โ‚ฆ25,000.00 Money values
Percentage 75% Rates and proportions
Date 26-Nov-2026 Calendar dates
Text Rice Names and descriptions

How to Format Data in Excel

  1. Select the cells you want to format.
  2. Open the Home tab.
  3. Find the Number Format section.
  4. Choose Number, Currency, Percentage, Date, or another suitable format.
  5. Check that the information is displayed correctly.

Always make sure numbers are stored as numbers when you want to calculate or chart them. A number stored as text may not behave as expected in calculations.

2.9 Practical Project: Prepare a Supermarket Sales Dataset

It is time to practise what you have learned. Imagine that you work as a data assistant for a supermarket in Ibadan. Your manager gives you the following sales records.

Date Product Quantity Sales Amount
01-Nov-2026 Rice 10 โ‚ฆ80,000
02-Nov-2026 Beans 8 โ‚ฆ40,000
03-Nov-2026 Spaghetti 15 โ‚ฆ30,000
04-Nov-2026 Rice 5 โ‚ฆ40,000
05-Nov-2026 Beans 12 โ‚ฆ60,000

Your Assignment

  1. Open Microsoft Excel.
  2. Enter the sales records into a worksheet.
  3. Use the first row for the column headings.
  4. Convert the information into an Excel Table.
  5. Format the Sales Amount column as Currency.
  6. Sort the products alphabetically.
  7. Filter the records to display only Rice sales.
  8. Save the workbook as Supermarket_Sales.xlsx.

You will use this prepared dataset when learning how to create charts in the next modules.

2.10 Important Terms to Remember

  • Data Preparation: Organising information before analysis.
  • Data Cleaning: Finding and correcting problems in data.
  • Excel Table: A structured way to organise information in Excel.
  • Duplicate: A record that appears more than once when it should be unique.
  • Missing Value: Information that has not been entered or is unavailable.
  • Sorting: Arranging records in a particular order.
  • Filtering: Displaying records that match selected conditions.
  • Formatting: Changing how information is displayed.

2.11 Module Assessment

Answer these 10 questions to test your understanding.

  1. What is data preparation?
    1. Deleting all information
    2. Organising and checking data before analysis
    3. Playing computer games
    4. Printing a document

    Answer: B

  2. Which of the following runs horizontally in Excel?
    1. Rows
    2. Columns
    3. Charts
    4. Formulas

    Answer: A

  3. What is an Excel cell?
    1. A type of computer
    2. A box where information is entered
    3. A chart title
    4. A printer setting

    Answer: B

  4. Which keyboard shortcut can create an Excel Table?
    1. Ctrl + P
    2. Ctrl + T
    3. Ctrl + S
    4. Ctrl + Z

    Answer: B

  5. What does data cleaning involve?
    1. Correcting mistakes and inconsistencies in data
    2. Changing the computer screen
    3. Deleting Excel
    4. Installing a printer

    Answer: A

  6. Which Excel feature helps remove duplicate records?
    1. Freeze Panes
    2. Remove Duplicates
    3. Page Layout
    4. WordArt

    Answer: B

  7. What does sorting do?
    1. Changes the order of records
    2. Deletes every row
    3. Creates a new computer
    4. Hides the worksheet permanently

    Answer: A

  8. What is the main purpose of filtering?
    1. Changing the font size
    2. Displaying records that match selected conditions
    3. Deleting all records
    4. Closing Excel

    Answer: B

  9. Which format is suitable for displaying Nigerian money values?
    1. Date
    2. Percentage
    3. Currency
    4. Text only

    Answer: C

  10. What should you do when a student's examination score is missing?
    1. Guess the score
    2. Automatically enter zero
    3. Check the original record or leave it blank until verified
    4. Delete every student's record

    Answer: C

2.12 Module Summary

In this module, you learned how to prepare data before creating charts in Excel. You explored rows, columns, and cells, and discovered how to organise information using Excel Tables.

You also learned how to clean data, identify duplicates, handle missing values, sort records, filter information, and format numbers, dates, and text.

Remember: accurate and well-organised data helps you create meaningful charts and reliable reports.

Coming Up in Module 3

In the next module, you will learn how to create basic charts in Excel. You will practise creating column charts, bar charts, line charts, pie charts, doughnut charts, and area charts. You will also learn how to add chart titles, labels, and legends.

Congratulations! You have completed Module 2.

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