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

Module Two

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

Module 2: Preparing Data for PivotTable Analysis

1. Introduction

Before creating a PivotTable in Microsoft Excel, you must make sure your information is properly organised.

Imagine your uncle owns a supermarket in Ibadan. Every day, workers record the products customers buy, the quantities sold, the prices and the dates of each transaction.

After several months, the supermarket may have thousands of sales records. If the information is not properly arranged, Excel may find it difficult to summarise it correctly.

That is why data preparation is important.

Simple Definition:

Data preparation is the process of organising, checking and correcting information before using it for analysis.

2. Understanding a Good Dataset

A dataset is a collection of related information arranged in rows and columns.

For example, a supermarket may record its daily sales like this:

Date Product Branch Quantity Sales (โ‚ฆ)
01/11/2026RiceIbadan550,000
02/11/2026BeansLagos330,000
03/11/2026MilkIbadan420,000
04/11/2026BreadLagos618,000

This dataset is organised because:

  • Each column has a clear heading.
  • Each row contains one sales transaction.
  • Dates are stored in the Date column.
  • Product names are stored in the Product column.
  • Sales amounts are stored in the Sales column.

3. Use Clear Column Headings

Every column in your dataset should have a heading that explains the information inside it.

For example, these are good column headings:

  • Product
  • Customer Name
  • Sales Date
  • Quantity Sold
  • Branch
  • Total Sales

Avoid unclear headings such as Column1, ABC, Number2 or Test.

Important Tip:

Do not leave the heading row blank. PivotTables use column headings to identify the fields you can analyse.

4. Remove Completely Blank Rows and Columns

Imagine your sales information has an empty row in the middle of the records.

For example:

Product Sales (โ‚ฆ)
Rice50,000
Beans30,000
Blank rowBlank row
Milk20,000

Blank rows and columns inside a dataset can cause problems when selecting the source data for a PivotTable.

How to remove a blank row:

  1. Open your Excel worksheet.
  2. Find the completely blank row.
  3. Right-click the row number on the left side.
  4. Choose Delete.
  5. Repeat for other unnecessary blank rows.

Be careful not to delete rows that contain useful information.

5. Finding and Removing Duplicate Records

A duplicate record is information that appears more than once when it should only appear once.

Imagine a supermarket accidentally records the same transaction twice. If you include both records in your analysis, the total sales may become incorrect.

For example:

Transaction ID Product Sales (โ‚ฆ)
101Rice50,000
102Beans30,000
101Rice50,000

Transaction 101 appears twice. If it is truly the same transaction, one copy should be removed.

How to Remove Duplicates in Excel

  1. Select your dataset.
  2. Click the Data tab.
  3. Find the Remove Duplicates command.
  4. Select the columns Excel should check.
  5. Click OK.
  6. Excel will report how many duplicate values were removed.
Be Careful!

Two customers may buy the same product for the same amount on the same day. That does not automatically mean one transaction is a duplicate. Use a unique transaction ID or other reliable details to identify genuine duplicates.

6. Handling Missing Values

A missing value happens when information that should be recorded is empty.

For example:

Product Quantity Sales (โ‚ฆ)
Rice550,000
BeansBlank30,000
Milk420,000

The quantity for Beans is missing.

Before creating a PivotTable, you should investigate missing information.

Possible actions include:

  • Check the original sales receipt.
  • Ask the person who recorded the information.
  • Correct the missing value if you can verify it.
  • Leave it blank if the correct value is unknown and document the issue.

Never guess important numbers just to fill an empty cell.

7. Formatting Dates Correctly

Dates are important when analysing information over time.

For example, a supermarket manager may want to know how much money the business made in January, February or March.

Excel needs to recognise dates correctly so that it can sort, group and analyse them.

Examples of dates include:

  • 01/11/2026
  • 05/11/2026
  • 15/11/2026

How to Format Dates in Excel

  1. Select the cells containing dates.
  2. Go to the Home tab.
  3. Find the Number Format section.
  4. Choose Short Date or another suitable date format.
  5. Check that Excel recognises the values as dates.

Important: Date formats can differ by computer settings. For example, 03/04/2026 may mean 3 April or March 4. Use an unambiguous date format or check your regional settings before analysing dates.

8. Formatting Numbers and Currency

When preparing a sales dataset, make sure numerical values are stored as numbers rather than ordinary text.

For example, these are numerical values:

  • 5000
  • 25000
  • 100000

You can apply currency formatting to display Nigerian sales amounts using the naira symbol.

How to Format Sales as Currency

  1. Select the cells containing sales amounts.
  2. Go to the Home tab.
  3. Find the Number Format section.
  4. Choose Currency or Accounting.
  5. Select the Nigerian naira symbol if it is available.
  6. Apply the format.

For example, 50000 can be displayed as โ‚ฆ50,000.00 depending on the selected format.

Remember:

Currency formatting changes how a number looks. It does not change the actual value stored in the cell.

9. Convert Your Data into an Excel Table

One useful way to prepare data for PivotTables is to convert the dataset into an Excel Table.

An Excel Table helps organise information and can automatically expand when you add new records.

How to Create an Excel Table

  1. Open your Excel worksheet.
  2. Click any cell inside your dataset.
  3. Press Ctrl + T on your keyboard.
  4. Check that the selected data range is correct.
  5. Tick the option called My table has headers if your dataset has headings.
  6. Click OK.

Excel will format the selected information as a table.

You can also create a table by selecting your data and choosing Insert, then Table.

Why Are Excel Tables Useful?

  • They help organise records.
  • They provide clear column headings.
  • They make it easier to filter and sort information.
  • They expand when you add new records.
  • They provide a convenient source for PivotTables.

10. Practical Activity: Prepare a Supermarket Dataset

Now it is time to practise what you have learned.

Imagine you are helping a supermarket in Lagos prepare its sales records for analysis.

Open Microsoft Excel and enter the following information:

Transaction ID Date Product Branch Quantity Sales (โ‚ฆ)
10101/11/2026RiceIbadan550,000
10202/11/2026BeansLagos330,000
10303/11/2026MilkIbadan420,000
10404/11/2026BreadLagos618,000
10505/11/2026RiceLagos220,000

Your tasks:

  1. Enter the information into Excel.
  2. Make sure every column has a heading.
  3. Check that the dates are recognised correctly.
  4. Format the sales column as Nigerian currency.
  5. Check for blank rows and missing values.
  6. Check whether any transaction IDs are repeated.
  7. Convert the dataset into an Excel Table using Ctrl + T.
  8. Rename the worksheet to Sales Data.

Save your workbook as Supermarket Sales Practice.xlsx.

11. Common Data Preparation Mistakes

Mistake How to Avoid It
Missing column headingsGive every column a clear heading.
Duplicate transactionsCheck unique transaction IDs before removing duplicates.
Numbers stored as textConvert values to the correct number format.
Incorrect datesCheck date formats and regional settings.
Blank rows inside dataRemove unnecessary blank rows.
Unverified missing valuesCheck the original records instead of guessing.

12. Important Terms to Remember

  • Data Preparation: Organising and checking information before analysis.
  • Dataset: A collection of related information.
  • Duplicate: A repeated record or value.
  • Missing Value: Information that should be present but is empty.
  • Excel Table: A structured range of data with headings and built-in tools.
  • Data Cleaning: Finding and correcting data errors.
  • Currency Format: A number format used to display money.

13. Module 2 Assessment

Choose the correct answer for each question.

1. What is data preparation?

A. Playing games with data

B. Organising and checking information before analysis

C. Deleting all worksheets

D. Printing documents

2. Why should every dataset column have a heading?

A. To make the screen brighter

B. To hide information

C. To identify the information stored in each column

D. To delete records

3. What is a duplicate record?

A. A repeated record

B. A new worksheet

C. A chart title

D. A computer password

4. Which Excel command helps remove duplicate records?

A. Sort

B. Print

C. Freeze Panes

D. Remove Duplicates

5. What is a missing value?

A. A value that appears twice

B. Information that should be present but is empty

C. A chart colour

D. A worksheet name

6. Which keyboard shortcut commonly creates an Excel Table?

A. Ctrl + P

B. Ctrl + S

C. Ctrl + T

D. Ctrl + Z

7. Which Excel tab contains the Remove Duplicates command?

A. Data

B. Insert

C. View

D. Review

8. What number format is suitable for displaying supermarket sales in Nigeria?

A. Date

B. Time

C. Percentage

D. Currency

9. What should you do when a sales quantity is missing?

A. Guess the number

B. Investigate the original record

C. Delete the entire workbook

D. Change the product name

10. Why is an Excel Table useful when preparing data for a PivotTable?

A. It deletes all records

B. It prevents sorting

C. It organises data and can expand when new records are added

D. It changes numbers into pictures

Assessment Answer Key

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

14. Module Summary

In this module, you have learned how to prepare information before creating a PivotTable.

You now understand how to:

  • Organise information into rows and columns.
  • Use clear column headings.
  • Remove unnecessary blank rows.
  • Identify genuine duplicate records.
  • Handle missing information carefully.
  • Format dates and numerical values.
  • Convert a dataset into an Excel Table.

Coming Up in Module 3

Creating Your First PivotTable

You will learn how to select a dataset, insert a PivotTable, choose where it should appear and create your first sales summary in Microsoft Excel.

CRMNuggets โ€“ Learn. Practice. Get Certified.

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