Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Preparing Data for Pivot Tables | Pivot Table Foundations
Excel Pivot Tables in Depth v2

bookPreparing Data for Pivot Tables

Swipe to show menu

What Is a Pivot Table?

A Pivot Table is a tool that allows you to summarize large amounts of data quickly.

Instead of manually filtering, sorting, or writing complex formulas, a Pivot Table lets you: calculate totals, count records, compare categories, analyze trends, group dates, filter dynamically.

For example, from a dataset of hundreds of sales transactions, you can instantly answer:

  • Total sales by region;
  • Sales by product category;
  • Monthly revenue trend
  • Top-performing product.

A Pivot Table reorganizes data without changing the original dataset.

Pivot Tables only work reliably when your data follows a simple table structure.

Each row must represent one record (one transaction).

Each column must represent one field (Date, Product, Region, Sales, etc.).

Before building a Pivot Table, quickly check four things:

  • No empty rows inside the dataset: Excel may stop reading data at the first empty row, so part of your dataset can be excluded;
  • Headers are present in the first row: Pivot Tables use headers as field names. If headers are missing or unclear, building the report becomes confusing;
  • Sales (or other metrics) are real numbers: if numbers are stored as text, totals and calculations can break or behave unexpectedly;
  • Dates use one consistent format: consistent dates are required for grouping by month/quarter/year later.

Prepare the dataset so it can be used for a Pivot Table.

Do the following:

  • Remove the empty row inside the dataset;
  • Convert Sales values stored as text into numbers;
  • Standardize the Date format to YYYY-MM-DD (replace / with -);
  • Fix the missing Date value by setting it to 2025-01-13.

Do NOT create a Pivot Table yet.

Workbook Reference

Download the workbook for this chapter to complete the task.

You can also download a version of the same workbook that includes the solution.

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 1

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

SectionΒ 1. ChapterΒ 1
some-alt