Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† Pivot Tables in Excel ยท Lesson 4 of 13

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.
4

Module 3: Creating Your First PivotTable in Excel

Welcome to Module 3 of Pivot Tables in Excel! In the previous module, we learned how to prepare data before analysing it. Now, we are going to create our first PivotTable.

By the end of this lesson, you will know how to select your data, insert a PivotTable, arrange fields and use it to summarise information.

What You Will Learn:
  • What you need before creating a PivotTable.
  • How to select your dataset.
  • How to insert a PivotTable.
  • How to arrange fields in a PivotTable.
  • How to summarise sales information.
  • How to refresh a PivotTable.

1. What Is a PivotTable?

A PivotTable is an Excel feature that helps you summarise a large amount of information quickly.

Imagine you own a supermarket in Ibadan. Every day, customers buy different products such as rice, beans, milk, bread and cooking oil.

After one month, you may have hundreds or thousands of sales records. Instead of counting everything manually, you can use a PivotTable to answer questions such as:

  • How much rice did we sell?
  • Which product made the highest sales?
  • How much did each branch sell?
  • How many units of bread were sold?

A PivotTable helps you find these answers without writing complicated formulas.

2. What You Need Before Creating a PivotTable

Before creating a PivotTable, make sure you have a properly organised dataset.

Your data should have:

  • Clear column headings.
  • One record on each row.
  • No completely blank rows inside the dataset.
  • Consistent information in each column.
  • Numbers stored as numbers, not ordinary text.

For example, consider this supermarket sales dataset:

Date Product Branch Quantity Sales (โ‚ฆ)
01/11/2026 Rice Ibadan 5 50,000
02/11/2026 Beans Lagos 3 24,000
03/11/2026 Rice Lagos 2 20,000
04/11/2026 Milk Ibadan 4 12,000
05/11/2026 Beans Ibadan 2 16,000

This small dataset will help us understand how a PivotTable works.

3. Step One: Open Your Excel Dataset

First, open Microsoft Excel and load the workbook containing your sales records.

  1. Open Microsoft Excel.
  2. Click File.
  3. Select Open.
  4. Find and open your supermarket sales workbook.
  5. Go to the worksheet containing your sales data.

Check that your data is arranged correctly before continuing.

4. Step Two: Select Your Dataset

You need to select the information you want Excel to analyse.

  1. Click any cell inside your dataset.
  2. If your data is in an Excel Table, clicking inside it is usually enough.
  3. If your data is an ordinary range, select the entire dataset, including the headings.
Important Tip:

Do not select only the sales column. A PivotTable needs the other columns too if you want to analyse sales by product, branch or date.

5. Step Three: Insert a PivotTable

Now, let's create the PivotTable.

  1. Click any cell inside your dataset.
  2. Go to the Insert tab on the Excel ribbon.
  3. Find and click PivotTable.
  4. Excel will display a window asking where your data is located and where you want the PivotTable to appear.
  5. Check that the selected table or range is correct.
  6. Choose New Worksheet to place the PivotTable on a separate worksheet.
  7. Click OK.

Excel will create a new worksheet with an empty PivotTable area and a PivotTable Fields panel.

Remember:

Choosing New Worksheet keeps your original sales records separate from your PivotTable report. It is a good choice when you are learning.

6. Step Four: Understand the PivotTable Fields Panel

The PivotTable Fields panel displays the headings from your original dataset.

For our supermarket example, the fields are:

  • Date
  • Product
  • Branch
  • Quantity
  • Sales

Below the field names, you will normally see four important areas.

A. Filters

The Filters area allows you to filter the entire PivotTable report using a selected field.

For example, you can use Branch as a filter to view sales from only the Ibadan branch.

B. Columns

The Columns area displays selected information across the top of the PivotTable.

For example, you can place Branch in Columns to compare different branches side by side.

C. Rows

The Rows area displays information down the side of the PivotTable.

For example, placing Product in Rows will list Rice, Beans, Milk and other products vertically.

D. Values

The Values area performs calculations on your data.

For example, placing Sales in Values will usually calculate the total sales amount.

Area Purpose Example
Filters Filters the report Branch
Columns Displays categories across the top Branch
Rows Displays categories down the side Product
Values Calculates numbers Sales

7. Step Five: Create Your First Sales Summary

Let's find out how much money the supermarket made from each product.

Follow these steps:

  1. Find Product in the PivotTable Fields panel.
  2. Drag Product into the Rows area.
  3. Find Sales.
  4. Drag Sales into the Values area.
  5. Look at the PivotTable displayed on the worksheet.

Excel should display each product and its total sales amount.

Using our sample records, the result should look like this:

Product Total Sales (โ‚ฆ)
Beans 40,000
Milk 12,000
Rice 70,000
Grand Total 122,000

Great! You have created your first PivotTable. It has calculated the total sales for each product automatically.

8. Step Six: Analyse Sales by Branch

Now, let's compare sales between the Ibadan and Lagos branches.

  1. Keep Product in the Rows area.
  2. Drag Branch into the Columns area.
  3. Make sure Sales is still in the Values area.
  4. Observe how Excel arranges the information.

Your PivotTable will show the sales for each product under the different branches.

Using our sample records, the summary will look like this:

Product Ibadan (โ‚ฆ) Lagos (โ‚ฆ) Total (โ‚ฆ)
Rice 50,000 20,000 70,000
Beans 16,000 24,000 40,000
Milk 12,000 0 12,000
Grand Total 78,000 44,000 122,000

From this report, we can see that the Ibadan branch recorded โ‚ฆ78,000 in sales, while the Lagos branch recorded โ‚ฆ44,000.

9. Step Seven: Add a Field to the Filters Area

You can use the Filters area to control what information appears in your report.

For example, let's filter the report by branch.

  1. Drag Branch into the Filters area.
  2. Look above your PivotTable for the Branch filter.
  3. Click the dropdown arrow.
  4. Select the branch you want to view, such as Ibadan.
  5. Click OK or Apply if your Excel version displays that option.

Your PivotTable will now show information for the selected branch. You can change the filter whenever you want.

10. Step Eight: Refresh Your PivotTable

Imagine you add a new sales record to your original dataset. Will your PivotTable automatically show the new information?

Usually, you need to refresh the PivotTable so that it reads the updated source data.

  1. Click anywhere inside your PivotTable.
  2. Right-click your mouse.
  3. Select Refresh.
  4. Excel will update the PivotTable using the available source data.

You can also look for the Refresh command under the PivotTable Analyse tab in supported desktop versions of Excel.

Important:

If your PivotTable uses an Excel Table as its source, newly added rows are generally included when you refresh it. If your source is an ordinary fixed range, you may need to expand the source range first.

11. Common Mistakes When Creating PivotTables

Mistake How to Fix It
Missing column headings Give every column a clear heading.
Putting Sales in Rows instead of Values Drag Sales into the Values area when you want to calculate totals.
Using the wrong data range Check that all relevant records and headings are included.
Forgetting to refresh Refresh after changing the source data.
Numbers stored as text Check and correct the original data before analysing it.

12. Practical Activity: Create a Supermarket Sales Report

It is time to practise what you have learned.

Imagine you are helping a supermarket manager in Ibadan. The manager wants to know which products sell the most and which branch generates more sales.

Your task:

  1. Open your supermarket sales dataset from Module 2.
  2. Create a new PivotTable on a new worksheet.
  3. Drag Product into Rows.
  4. Drag Sales into Values.
  5. Find the total sales for each product.
  6. Drag Branch into Columns.
  7. Compare the sales between the branches.
  8. Drag Branch into Filters and practise filtering the report.
  9. Add a new record to your source data and refresh the PivotTable.
Challenge:

Can you create a PivotTable that shows the total quantity of products sold by each branch? Try using Quantity in the Values area instead of Sales.

13. Important Terms to Remember

  • PivotTable: An Excel tool used to summarise and analyse data.
  • PivotTable Fields: The column headings available for building a PivotTable.
  • Rows: The area that displays categories vertically.
  • Columns: The area that displays categories horizontally.
  • Values: The area where calculations are performed.
  • Filters: The area used to control which information appears in a report.
  • Grand Total: The overall total calculated by the PivotTable.
  • Refresh: An action that updates a PivotTable using its source data.

14. Module 3 Assessment: Test Your Knowledge

Answer the following questions to check your understanding.

  1. What is a PivotTable used for in Excel?

    A. Playing music

    B. Summarising and analysing data

    C. Designing websites

    D. Sending emails

  2. Which Excel tab is commonly used to insert a PivotTable?

    A. Review

    B. View

    C. Insert

    D. Page Layout

  3. Which area displays categories vertically in a PivotTable?

    A. Rows

    B. Values

    C. Filters

    D. Columns

  4. Which area is used to calculate the total sales amount?

    A. Filters

    B. Rows

    C. Columns

    D. Values

  5. What happens when you place Product in the Rows area?

    A. Excel deletes the products

    B. Products are listed vertically

    C. Excel closes the workbook

    D. Products become pictures

  6. Which area can be used to filter a report by branch?

    A. Values

    B. Rows

    C. Filters

    D. Columns

  7. What should you do after adding new records to your source data?

    A. Refresh the PivotTable

    B. Delete the workbook

    C. Remove all headings

    D. Close Excel permanently

  8. What does Grand Total represent?

    A. The first product in the list

    B. The name of the worksheet

    C. The total number of columns

    D. The overall calculated total

  9. Which field would you place in Values to calculate the total number of items sold?

    A. Product

    B. Quantity

    C. Branch

    D. Date

  10. Where can Excel place a newly created PivotTable?

    A. Only inside a chart

    B. Only in a different workbook

    C. In a new or existing worksheet

    D. Only in Microsoft Word

Assessment Answer Key

Question Correct Answer
1B
2C
3A
4D
5B
6C
7A
8D
9B
10C

15. Module Summary

Well done! You have completed Module 3.

In this module, you learned how to create your first PivotTable, select your dataset, arrange fields into Rows, Columns, Values and Filters, summarise sales information and refresh your report.

You can now use Excel to turn ordinary sales records into useful reports without manually calculating every figure.

Coming Up in Module 4:

Understanding PivotTable Fields and Layout

In the next module, we will explore PivotTable fields in greater detail and learn how to change the layout of reports to make information 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.
โ†’