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

Module Five

๐Ÿ“– 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 5: Data Visualization with PivotTables and PivotCharts

Module 5: Data Visualization with PivotTables and PivotCharts

5.1 Introduction to PivotTables

Imagine that you own a supermarket in Ibadan. Every day, your workers record the products sold, quantities, prices, dates, and total sales amounts.

After a few months, you may have hundreds or even thousands of sales records. Reading every row to find your best-selling product or your highest sales month can take a long time.

Microsoft Excel has a powerful feature called a PivotTable. It helps you summarise large amounts of information and answer questions quickly.

Simple Definition:

A PivotTable is an Excel tool that summarises and organises data so you can compare information and discover useful patterns.

What Can a PivotTable Do?

  • Calculate total sales for each product.
  • Compare sales across different months.
  • Count the number of customers.
  • Calculate average examination scores.
  • Compare business performance across locations.
  • Group information into categories.

5.2 Understanding How PivotTables Work

A PivotTable takes information from a dataset and allows you to arrange it into different summaries.

For example, imagine you have the following supermarket sales records:

Date Product Branch Sales (โ‚ฆ)
01-Nov Rice Ibadan 80,000
02-Nov Beans Lagos 40,000
03-Nov Rice Lagos 60,000
04-Nov Spaghetti Ibadan 30,000
05-Nov Beans Ibadan 50,000

You can use a PivotTable to calculate how much money was made from each product or how much each branch sold.

5.3 Understanding the Four Main PivotTable Areas

When you create a PivotTable, Excel provides four main areas where you can place your dataset fields.

1. Filters

The Filters area allows you to display information for selected categories. For example, you can choose to view sales records for only the Ibadan branch.

2. Columns

The Columns area displays categories across the top of your PivotTable. For example, you can display different branches as column headings.

3. Rows

The Rows area displays categories down the left side of the PivotTable. For example, you can list products such as Rice, Beans, and Spaghetti.

4. Values

The Values area contains the calculations. Excel can calculate totals, counts, averages, minimum values, and maximum values.

Example:

To calculate total sales for each product, place Product in the Rows area and Sales in the Values area. Excel will summarise the sales for each product.

5.4 Creating Your First PivotTable

Let's create a PivotTable using supermarket sales information.

Step-by-Step Instructions

  1. Open Microsoft Excel.
  2. Enter your sales records into a worksheet.
  3. Make sure every column has a clear heading.
  4. Click inside your dataset or Excel Table.
  5. Open the Insert tab.
  6. Click PivotTable.
  7. Check that Excel has selected the correct data range or table.
  8. Choose New Worksheet and click OK.
  9. Excel will open a new worksheet with the PivotTable Fields panel.
  10. Drag Product into Rows.
  11. Drag Sales into Values.

Excel will create a summary showing the total sales for each product.

If Excel displays Count of Sales instead of Sum of Sales, open the field's settings in the Values area and select Sum. This usually happens when the sales values are stored as text or contain non-numeric entries.

5.5 Summarising Data with PivotTables

One of the biggest benefits of PivotTables is that they can summarise information using different calculations.

Here are some useful calculations:

  • Sum: Adds all numerical values together.
  • Count: Counts records or non-empty values, depending on the field and calculation used.
  • Average: Calculates the average value.
  • Maximum: Finds the highest value.
  • Minimum: Finds the lowest value.

Example: Student Examination Results

A school in Lagos records the examination scores of its students. The teacher wants to calculate the average score for each subject.

Student Subject Score
Tunde Mathematics 80
Amina Mathematics 90
David English 70
Grace English 80

To calculate the average score for each subject:

  1. Create a PivotTable from the examination records.
  2. Drag Subject into Rows.
  3. Drag Score into Values.
  4. Open Value Field Settings for the Score field.
  5. Select Average.
  6. Click OK.

Excel will calculate the average score for Mathematics and English.

5.6 Grouping Dates and Categories

Sometimes your dataset contains many dates. Instead of analysing each date separately, you can group dates into months, quarters, or years using PivotTables.

For example, a business may have sales records for every day of the year. The manager may want to see total sales for each month.

How to Group Dates

  1. Create a PivotTable using your sales dataset.
  2. Drag the Date field into the Rows area.
  3. Drag Sales into the Values area.
  4. Right-click any date displayed in the PivotTable.
  5. Select Group.
  6. Choose Months, Quarters, or Years as needed.
  7. Click OK.

Excel will group the dates based on your selection. If the Group option is unavailable, check that the source dates are real Excel dates and do not contain text or blank values that prevent grouping.

Grouping Categories

You can also group related items manually in a PivotTable.

For example, a supermarket may group products into categories such as:

  • Food: Rice, Beans, Spaghetti.
  • Drinks: Water, Juice, Soft Drinks.
  • Household Items: Soap, Detergent, Tissue.

Grouping makes large reports easier to understand.

5.7 Creating PivotCharts

A PivotChart is a chart connected to a PivotTable. It allows you to present summarized information visually.

For example, after creating a PivotTable showing total sales for Rice, Beans, and Spaghetti, you can create a PivotChart to compare the products.

How to Create a PivotChart

  1. Click anywhere inside your PivotTable.
  2. Open the PivotTable Analyze tab. In some Excel versions, the tab may have a slightly different name.
  3. Click PivotChart.
  4. Choose a suitable chart type, such as a column chart or bar chart.
  5. Click OK.
  6. Add a clear chart title.
  7. Format the chart to make it easy to understand.

When you change the PivotTable's filters or layout, the connected PivotChart updates to show the new summary.

Why Are PivotCharts Useful?

  • They turn PivotTable summaries into charts.
  • They make comparisons easier.
  • They work with PivotTable filters.
  • They help users discover patterns in business information.
  • They are useful for creating interactive reports.

5.8 Using Slicers to Filter Reports

A slicer is a visual filtering tool used with Excel Tables and PivotTables. It displays buttons that allow you to filter information quickly.

Imagine that a supermarket has branches in Ibadan, Lagos, and Abuja. You want to see the sales information for only one branch.

Instead of opening a filter menu, you can click a slicer button for the branch you want.

How to Add a Slicer to a PivotTable

  1. Click inside your PivotTable.
  2. Open the PivotTable Analyze tab.
  3. Click Insert Slicer.
  4. Select the field you want to use, such as Branch or Product.
  5. Click OK.
  6. Excel will display a slicer with buttons for the available categories.
  7. Click a button to filter your PivotTable.
  8. Use the clear filter button on the slicer to remove the selection.
Practical Example:

If you click Ibadan on a Branch slicer, your PivotTable can display only the sales records for the Ibadan branch.

5.9 Using Timelines in PivotTables

A timeline is a visual filter that allows you to select dates in a PivotTable. It is especially useful when your dataset contains many dates.

For example, a supermarket manager may want to view sales for January, February, or March without manually selecting every date.

How to Insert a Timeline

  1. Click inside a PivotTable that contains a valid date field.
  2. Open the PivotTable Analyze tab.
  3. Click Insert Timeline.
  4. Select the Date field.
  5. Click OK.
  6. Use the timeline to select the period you want to analyse.
  7. Change the timeline level to Years, Quarters, Months, or Days when available.

A timeline makes it easier to analyse information across different periods.

Important Note:

Slicers and timelines work with supported Excel tables and PivotTables. Some older Excel versions may have different features or menu locations.

5.10 Practical Project: Build a Sales Summary Report

You are now going to use what you have learned to create a simple business report.

Imagine that you work for a supermarket with branches in Ibadan and Lagos. Your manager wants to understand which products are selling best and which branch is performing better.

Project Dataset

Date Product Branch Sales (โ‚ฆ)
01-Jan-2026 Rice Ibadan 100,000
05-Jan-2026 Beans Lagos 70,000
10-Feb-2026 Spaghetti Ibadan 50,000
15-Feb-2026 Rice Lagos 120,000
05-Mar-2026 Beans Ibadan 90,000
12-Mar-2026 Spaghetti Lagos 60,000

Your Project Tasks

  1. Open Excel and enter the dataset.
  2. Convert the dataset into an Excel Table.
  3. Create a PivotTable to calculate total sales by product.
  4. Create another PivotTable to compare sales by branch.
  5. Create a PivotChart showing total sales for each product.
  6. Add a Branch slicer to filter your report.
  7. Add a Date timeline to filter sales by month.
  8. Format the sales values as Nigerian Naira.
  9. Add clear titles to your report and chart.
  10. Save your workbook as Supermarket_Pivot_Report.xlsx.

Questions to Answer

  • Which product recorded the highest total sales?
  • Which branch recorded the highest total sales?
  • How can you use a slicer to view only Lagos sales?
  • How can a timeline help you compare monthly sales?
  • Why is a PivotTable useful when working with many records?

5.11 Important Terms to Remember

  • PivotTable: An Excel tool for summarising and analysing data.
  • PivotChart: A chart connected to a PivotTable.
  • Rows Area: The area used to display categories down the side of a PivotTable.
  • Columns Area: The area used to display categories across a PivotTable.
  • Values Area: The area where calculations such as Sum and Average are performed.
  • Filters Area: The area used to filter a PivotTable.
  • Slicer: A visual tool for filtering tables and PivotTables.
  • Timeline: A visual date filter for supported PivotTables.
  • Grouping: Organising related information into categories or periods.

5.12 Module Assessment

Choose the correct answer for each question.

  1. What is a PivotTable?
    1. A tool for summarising and analysing data
    2. A computer keyboard
    3. A drawing application
    4. A type of printer

    Answer: A

  2. Which PivotTable area contains calculations such as Sum and Average?
    1. Rows
    2. Columns
    3. Values
    4. Filters

    Answer: C

  3. Which area displays categories down the left side of a PivotTable?
    1. Rows
    2. Values
    3. Filters
    4. Charts

    Answer: A

  4. What does the Sum calculation do?
    1. Finds the smallest value
    2. Adds numerical values together
    3. Changes the font colour
    4. Removes worksheets

    Answer: B

  5. What is a PivotChart?
    1. A chart connected to a PivotTable
    2. A blank worksheet
    3. A computer game
    4. A text document

    Answer: A

  6. Which feature allows you to filter a PivotTable using clickable buttons?
    1. WordArt
    2. Slicer
    3. Page Border
    4. Spell Check

    Answer: B

  7. What is the main purpose of a timeline in Excel?
    1. To filter dates in a PivotTable
    2. To change the worksheet colour
    3. To delete all dates
    4. To create passwords

    Answer: A

  8. Which calculation finds the average of numerical values?
    1. Maximum
    2. Minimum
    3. Average
    4. Remove Duplicates

    Answer: C

  9. Which PivotTable feature can group dates into months or years?
    1. Grouping
    2. WordArt
    3. Print Preview
    4. Page Colour

    Answer: A

  10. Why are PivotTables useful for business reports?
    1. They make data impossible to understand
    2. They summarise large amounts of information
    3. They automatically delete business records
    4. They replace all computer applications

    Answer: B

5.13 Module Summary

In this module, you learned how to use PivotTables to summarise information in Microsoft Excel. You explored the four main PivotTable areas: Filters, Columns, Rows, and Values.

You also learned how to calculate totals and averages, group dates and categories, create PivotCharts, and use slicers and timelines to filter reports.

PivotTables are especially useful when working with large datasets because they help you find important information without manually calculating every value.

Coming Up in Module 6

In the next module, you will learn how to improve chart design and presentation. You will explore chart colours, backgrounds, data labels, axis titles, conditional formatting, and ways to make your reports clear and professional.

Congratulations! You have completed Module 5.

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