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.
Data preparation is the process of organising, checking and correcting information before using it for analysis.
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/2026 | Rice | Ibadan | 5 | 50,000 |
| 02/11/2026 | Beans | Lagos | 3 | 30,000 |
| 03/11/2026 | Milk | Ibadan | 4 | 20,000 |
| 04/11/2026 | Bread | Lagos | 6 | 18,000 |
This dataset is organised because:
Every column in your dataset should have a heading that explains the information inside it.
For example, these are good column headings:
Avoid unclear headings such as Column1, ABC, Number2 or Test.
Do not leave the heading row blank. PivotTables use column headings to identify the fields you can analyse.
Imagine your sales information has an empty row in the middle of the records.
For example:
| Product | Sales (โฆ) |
|---|---|
| Rice | 50,000 |
| Beans | 30,000 |
| Blank row | Blank row |
| Milk | 20,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:
Be careful not to delete rows that contain useful information.
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 (โฆ) |
|---|---|---|
| 101 | Rice | 50,000 |
| 102 | Beans | 30,000 |
| 101 | Rice | 50,000 |
Transaction 101 appears twice. If it is truly the same transaction, one copy should be removed.
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.
A missing value happens when information that should be recorded is empty.
For example:
| Product | Quantity | Sales (โฆ) |
|---|---|---|
| Rice | 5 | 50,000 |
| Beans | Blank | 30,000 |
| Milk | 4 | 20,000 |
The quantity for Beans is missing.
Before creating a PivotTable, you should investigate missing information.
Possible actions include:
Never guess important numbers just to fill an empty cell.
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:
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.
When preparing a sales dataset, make sure numerical values are stored as numbers rather than ordinary text.
For example, these are numerical values:
You can apply currency formatting to display Nigerian sales amounts using the naira symbol.
For example, 50000 can be displayed as โฆ50,000.00 depending on the selected format.
Currency formatting changes how a number looks. It does not change the actual value stored in the cell.
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.
Excel will format the selected information as a table.
You can also create a table by selecting your data and choosing Insert, then Table.
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 (โฆ) |
|---|---|---|---|---|---|
| 101 | 01/11/2026 | Rice | Ibadan | 5 | 50,000 |
| 102 | 02/11/2026 | Beans | Lagos | 3 | 30,000 |
| 103 | 03/11/2026 | Milk | Ibadan | 4 | 20,000 |
| 104 | 04/11/2026 | Bread | Lagos | 6 | 18,000 |
| 105 | 05/11/2026 | Rice | Lagos | 2 | 20,000 |
Your tasks:
Save your workbook as Supermarket Sales Practice.xlsx.
| Mistake | How to Avoid It |
|---|---|
| Missing column headings | Give every column a clear heading. |
| Duplicate transactions | Check unique transaction IDs before removing duplicates. |
| Numbers stored as text | Convert values to the correct number format. |
| Incorrect dates | Check date formats and regional settings. |
| Blank rows inside data | Remove unnecessary blank rows. |
| Unverified missing values | Check the original records instead of guessing. |
Choose the correct answer for each question.
A. Playing games with data
B. Organising and checking information before analysis
C. Deleting all worksheets
D. Printing documents
A. To make the screen brighter
B. To hide information
C. To identify the information stored in each column
D. To delete records
A. A repeated record
B. A new worksheet
C. A chart title
D. A computer password
A. Sort
B. Print
C. Freeze Panes
D. Remove Duplicates
A. A value that appears twice
B. Information that should be present but is empty
C. A chart colour
D. A worksheet name
A. Ctrl + P
B. Ctrl + S
C. Ctrl + T
D. Ctrl + Z
A. Data
B. Insert
C. View
D. Review
A. Date
B. Time
C. Percentage
D. Currency
A. Guess the number
B. Investigate the original record
C. Delete the entire workbook
D. Change the product name
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
| Question | Correct Answer |
|---|---|
| 1 | B |
| 2 | C |
| 3 | A |
| 4 | D |
| 5 | B |
| 6 | C |
| 7 | A |
| 8 | D |
| 9 | B |
| 10 | C |
In this module, you have learned how to prepare information before creating a PivotTable.
You now understand how to:
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.