evelin.

Pivot table analysis: how to summarize large data fast

Learn how to build simple pivot tables to summarise big spreadsheets, spot patterns in seconds and answer basic business questions with confidence.

What a pivot table actually does

A pivot table turns a long, messy list of rows into a compact summary. Instead of scrolling through thousands of lines, you choose what you want to group by, such as month or product, and what you want to calculate, such as total sales or average quantity. The tool then creates a new table that shows one row per group, with your chosen metrics as columns. You can quickly swap rows, columns and filters to answer several questions from the same source data. For basic descriptive analysis, this is often the fastest way to see trends and totals.

Key pivot table ideas
๐Ÿ“Š
Group rows
Turn many rows into a few groups
๐Ÿงฎ
Summarise numbers
Sum, count, average and more
๐ŸŽ›๏ธ
Drag and drop
Rearrange questions in seconds

First steps: building your first pivot table

Start with a clean table that has one header row and no completely blank columns or rows. In Excel or Google Sheets, select any cell in your data, then insert a pivot table. In the pivot editor, drag a categorical field, for example Product or Region, into Rows. Drag a numeric field, such as Sales, into Values and keep the default aggregation as Sum or change it if needed. Add a Date or Category field into Columns or Filters to compare across time or segments. Change fields and aggregations until the layout matches the question you want to answer.

Basic pivot workflow
  1. ๐Ÿ“1
    Prepare data
    Headers in one row, tidy table
  2. โž•2
    Insert pivot
    Use Insert, Pivot table menu
  3. ๐Ÿ“š3
    Add rows
    Drag grouping fields to Rows
  4. ๐Ÿงฎ4
    Add values
    Drag numeric fields to Values

Using pivot tables to answer business questions

Think of each field as a way to slice your data. If your question is about who buys the most, put Customer or Segment in Rows, and Sales in Values. If the question is about seasonality, place Date in Rows or Columns and group by month or quarter, then use Sales or Orders as Values. To compare categories, such as product line by region, use one in Rows and one in Columns. Filters help you focus on a specific subset, for example a single country or channel. Each pivot layout represents a specific question, so adjust rows, columns and filters until the result speaks directly to that question.

Choosing rows vs columns
Put in Rows when
  • โ€ขYou want a long list
  • โ€ขYou care about ranking
  • โ€ขYou plan to filter visually
Put in Columns when
  • โœ“You compare a few categories
  • โœ“You want a compact grid
  • โœ“You plan quick side by side checks
VS

Common pivot table mistakes to avoid

Many confusing pivot results come from messy source data. Mixed data types in one column, such as text and numbers in the same field, can break groups and calculations. Text values with extra spaces create duplicate looking categories. Another trap is the wrong aggregation, for example Count instead of Sum, which can make numbers look far too small or large. People also forget to refresh pivots after changing the source table. Before trusting a result, always check a few raw rows that feed into one pivot cell. If they match your expectations, your setup is likely correct.

Avoid these pivot issues
โš ๏ธ
Wrong aggregation
Check Sum, Count, Average settings
๐Ÿ”ค
Dirty categories
Trim spaces and fix typos first
๐Ÿ”
No refresh
Refresh after updating source data

Next steps: making pivots more powerful

Once you are comfortable with simple totals, you can add depth. Use multiple fields in Rows to create a hierarchy, for example Region, then City, then Store. Add more than one value field to see Sum of Sales and Count of Orders side by side. Try different aggregations, like Average or Max, to see other aspects of performance. Learn how to group dates into months, quarters and years to spot trends at different levels. Over time, you will learn which pivot layouts help you answer recurring questions in your work and you can reuse them as standard views.

Real-world examples

  • โ€ข You have a year of order data in a sheet and want to know which three products brought in the highest total revenue. You build a pivot table with Product in Rows and Sum of Revenue in Values, then sort by Revenue.
  • โ€ข Your manager asks how many support tickets arrived per month by channel. You create a pivot with Month in Rows, Channel in Columns and Count of Tickets in Values to see the pattern at a glance.
  • โ€ข You track personal expenses in a spreadsheet and want to see where your money goes. You set Category in Rows, Month in Columns and Sum of Amount in Values to compare spending habits over time.

Useful links

  • Microsoft Excel โ€” Official Excel product page that links to documentation and training.
  • Google Sheets โ€” Access Sheets help and learning resources from the official site.

Keep learning

Related courses

More programs on evelin that fit this path. Each one adapts to you after a two minute quiz.

Guides from related courses

All courses on evelin โ†’

Turn reading into real progress

A short quiz builds your personal learning path for How to Become a Data Analyst. Lessons adapt to you from day one.

Start the quiz

Created with AI assistance and reviewed before publishing.