How to Create a Pivot Table in Excel

Learn how to create a pivot table in Excel, prepare data, choose fields, summarize values, refresh results, avoid mistakes, and read FAQs.

Excel & Google SheetsEdited by Pramod Tiwari
2 min read

Quick Answer

To create a pivot table in Excel, organize your data with headers, click any cell in the data range, choose Insert > PivotTable, select where to place it, then drag fields into Rows, Columns, Values, and Filters.

What You Need

  • Excel workbook
  • Structured data with headers
  • No completely blank header rows
  • Column fields to summarize
  • Basic idea of the question you want answered

Safety Precautions

  • Save a copy before changing important data.
  • Make sure each column has a clear header.
  • Check source data for blanks or mixed formats.
  • Refresh the pivot table after source data changes.
  • Verify summaries before using them for decisions.

Step-by-Step Instructions

  1. Step 1

    Prepare the data

    Use one header row and consistent columns.

  2. Step 2

    Click in the data

    Select any cell inside the range.

  3. Step 3

    Insert pivot table

    Go to Insert > PivotTable.

  4. Step 4

    Choose location

    Place it in a new worksheet or existing worksheet.

  5. Step 5

    Add fields

    Drag fields into Rows, Columns, Values, and Filters.

  6. Step 6

    Adjust summary

    Change Values from count to sum or another calculation if needed.

  7. Step 7

    Refresh later

    Right-click and refresh after source data changes.

Practical Example

Example: You summarize sales data by dragging Region to Rows, Product to Columns, and Revenue to Values.

Common Mistakes

  • Using data without headers
  • Including blank rows in the range
  • Forgetting to refresh
  • Leaving numbers stored as text
  • Using Count when Sum is needed
  • Not checking source data accuracy

Troubleshooting

Excel counts instead of sums

Check that source numbers are numeric and change Value Field Settings.

New data is missing

Expand the source range or use an Excel table, then refresh.

Field list is confusing

Rename source headers clearly.

Blank appears in results

Clean blank cells or filter them out.

FAQs

What is a pivot table?

It is a tool that summarizes and rearranges data without changing the source.

Do I need formulas for pivot tables?

No, basic pivot tables use drag-and-drop fields.

Why is my pivot table not updating?

Refresh it after source data changes.

Should I use an Excel table as source?

Yes, tables expand more cleanly when new rows are added.

Help us improve this guide

Tell us about an outdated instruction, unclear step, broken link or safety concern. Do not include passwords, account numbers, medical records or other sensitive information.

Email a correction or suggestion