New cohort starts 11 January 2027 · Limited seats · Apply now

Excel Pivot Tables: A Step-by-Step Guide for Analysts

Nov 5, 2026 | Excel

Excel pivot tables turn thousands of rows into a clear summary in seconds, with no formulas. They are one of the most tested skills in data analyst interviews and one of the most useful in any office job. This step-by-step guide takes you from raw data to an interactive summary.

An adviser answering questions on a call

Step 1: Prepare your data

Pivot tables need clean, tabular data:

  • One header row, with a unique name for every column
  • One record per row (for example one sale per row)
  • No blank rows or merged cells
  • Numbers stored as numbers and dates as real dates

Then select any cell and press Ctrl + T to turn the range into an Excel Table. Tables grow automatically, so your pivot picks up new rows when you refresh. If the data is messy, read data cleaning in Excel first.

Step 2: Insert the pivot table

  1. Click inside your Table
  2. Go to Insert › PivotTable
  3. Choose New Worksheet and click OK

Step 3: Build your first summary

Drag fields into the four areas:

Area What it does Example
Rows Groups down the side Branch
Columns Groups across the top Product category
Values What you calculate Sum of Amount
Filters Filters the whole pivot Year

You now have revenue by branch and category without a single formula.

Step 4: Group dates by month or quarter

Drag a date field to Rows, right-click any date and choose Group, then select Months and Years. Always include Years, or January 2025 and January 2026 are added together.

Step 5: Show percentages

Right-click a value and choose Show Values As › % of Grand Total (or % of Column Total) to see each branch’s share of revenue.

Step 6: Change the calculation

Right-click a value › Summarize Values By to switch between Sum, Count, Average, Max and Min. Use Count to see the number of orders and Average for average order value.

Step 7: Add slicers

Click the pivot, then PivotTable Analyze › Insert Slicer. Slicers are buttons that filter the pivot, which makes it easy for a manager to explore the data. Connect one slicer to several pivots through Report Connections.

7 pro tips for Excel pivot tables

  1. Refresh after changing data: Data › Refresh All
  2. Use Tabular Form (Design › Report Layout) for a cleaner look
  3. Sort by value, not alphabetically, to show top performers first
  4. Use Value Filters › Top 10 for quick rankings
  5. Double-click any value to see the rows behind it
  6. Add a calculated field for things like profit margin
  7. Turn on Defer Layout Update for very large datasets

Microsoft’s guide to creating a PivotTable covers every option.

From pivot tables to Power BI

Pivot tables are the stepping stone to Power BI, which uses the same idea of rows, columns and values at a much larger scale. When you’re ready, try our Power BI tutorial for beginners. Both are taught in module 1 and 4 of Datamac’s data analytics courses.

FAQs

Why is my pivot table counting instead of summing?

The column contains blanks or text. Clean the column so every value is a number, then change Summarize Values By to Sum.

Why doesn’t my pivot show new data?

Click Refresh. If you didn’t use an Excel Table, also update the source range.

Can pivot tables handle large data?

Yes, for hundreds of thousands of rows. For more, use Power Pivot or Power BI.

Keep reading

Learn this live with Datamac

Datamac’s 12-month data analytics internship teaches Excel, SQL, Python, Power BI, Tableau and machine learning in live online classes twice a week, with real Nigerian datasets, two capstones and career support.

Apply for the internship · Compare courses · Ask a question on WhatsApp

Learn this live in the new cohort.

Live classes twice a week, real Nigerian datasets, two capstones and career support.

Apply for new CohortCompare courses

Keep reading