How to create a pivot table in Excel from a dataset

A pivot table lets you summarise a large table of data without writing formulas. You pick fields for rows, columns and values, and Excel groups and totals them for you. It suits beginners who have a clean data table with headers and want quick totals and counts.

YouTube video: Pivot Tables in Excel | Excel Tutorials for Beginners

YouTube’s video details do not confirm captions. Check CC in the player for available tracks.

Video length
17 min 35 s
Time to do it
10 minutes
Difficulty
Easy
Steps
8

What you need

Steps

  1. Click any cell inside your data table so Excel treats the whole range as the source.

  2. Go to the Insert tab and click PivotTable. Confirm the range in the dialog and choose New Worksheet, then click OK.

  3. In the PivotTable Fields pane, drag a category field such as Product or Region into the Rows area.

  4. Drag a second field into the Columns area if you want a cross-tab layout.

  5. Drag a number field such as Sales or Quantity into the Values area. Excel sums it by default.

  6. Right-click a value in the table and pick Value Field Settings to switch from Sum to Count, Average or Max.

  7. Use the drop-down arrows on row or column labels to sort, filter or hide items you do not need.

  8. Click Refresh under PivotTable Analyze when the source data changes so the table picks up new rows.

Tips and common mistakes

Make sure every column has a header and there are no blank rows, or Excel may guess the range wrong.

If you add rows to the source, refresh the pivot table instead of rebuilding it.

Format the values as currency or numbers with right-click, Number Format for readable totals.

Questions

Does a pivot table change my original data?

No. It only reads the source range and builds a separate summary on a new sheet. Your raw table stays untouched.

Why does my pivot table show Count instead of Sum?

Excel counts when the value field contains text or blanks. Check that the column holds only numbers, then set Sum in Value Field Settings.

Can I update the pivot table after adding rows?

Yes. Click Refresh under PivotTable Analyze, or change the source range under Change Data Source first.

The notes are drafted automatically from video details and general task knowledge. How the guide was prepared

Report a correction

More in Apps & Software

See all