How to Create a PivotTable in Excel
How to turn a long list in Excel into totals, counts and averages with a PivotTable: preparing the data, inserting the PivotTable from the Insert tab, using Rows, Columns, Values and Filters in the fields pane, and refreshing the table.

When you have a long list of sales, expenses or attendance records and want to total it by category, month or person, a PivotTable can do it without writing formulas. You leave the raw data untouched and drag fields around to get totals, counts and averages in seconds.
This guide covers, using the names in Excel for Windows, how to prepare the data, insert the PivotTable, use the PivotTable Fields pane, change the calculation type and refresh the table when the source data changes. Turkish interface names are given in parentheses where they differ.
The steps follow Microsoft Support's pages "Create a PivotTable to analyze worksheet data" and "Refresh PivotTable data". Menu names can differ slightly between Excel versions.
- Time10 minutes
- DifficultyEasy
- Steps8
🧰 What you need
- Excel for Windows (desktop version)
- A list organized in columns with a header above each column (for example Date, Region, Product, Amount)
- A saved copy of the file; a PivotTable does not change the source data, but saving first is a good habit
Steps
- Get the data ready for a PivotTableYour data should be in columns with a single header row at the top. Every column header should be filled in and unique; avoid double header rows and merged cells, and do not leave blank rows or blank columns inside the list. These are Microsoft's data layout guidelines, and a PivotTable will not build correctly without them.
- Convert the list to an Excel table (recommended)Select a cell inside the data, open Home → Format as Table (Giriş → Tablo Olarak Biçimlendir) and pick a style. In the Create Table dialog check the range, tick "My table has headers" if the first row holds headers, and select OK. Microsoft says tables make a good PivotTable source because rows added to a table are included in the PivotTable automatically when you refresh.
- Select Insert → PivotTableClick a cell inside the data or table, switch to the Insert tab on the ribbon and select PivotTable. If you are not sure which layout you need, select Recommended PivotTables in the same place; Excel suggests a few ready-made layouts, and you choose one and select OK.
- Fill in the Create PivotTable dialogIn Table/Range, Excel detects the data you selected; check that it covers the whole range. Under "Choose where you want the PivotTable report to be placed" pick New Worksheet (keeps it apart from your data) or Existing Worksheet, then select OK.
- Tick fields in the PivotTable Fields paneThe PivotTable Fields pane opens on the right. Tick the check box of each field you want; Excel puts the fields in their default areas: non-numeric fields go to Rows, date and time hierarchies go to Columns, and numeric fields go to Values. For example, ticking Product and Amount immediately shows the total amount per product.
- Drag fields between Rows, Columns, Values and FiltersAt the bottom of the pane there are four areas: Filters, Columns, Rows and Values. To move a field to another area, drag it to the target area. Rows and Columns define the table's headings, Values holds the calculated numbers, and a field placed in Filters lets you filter the whole report by a specific value. To remove a field, drag it out of the pane or clear its check box.
- Choose Sum, Count or AverageClick the arrow next to the field in the Values area and select Value Field Settings. In the Summarize Values By section pick a calculation such as SUM, COUNT or AVERAGE. By default Excel shows a sum for numeric fields and a count for fields that contain text; you can also change the heading in the Custom Name box, such as "Sum of Amount".
- Refresh the table when the source data changesAfter changing the raw data, right-click anywhere inside the PivotTable and select Refresh. If the workbook has several PivotTables, select a cell in one of them, open the arrow under Refresh on the PivotTable Analyze tab and select Refresh All. The keyboard shortcut is Alt+F5.
⚠ This guide is general information. Yudum cannot be held responsible for the outcome of following it; for official procedures always rely on the institution's own statement. Steps and fees change over time.
💬 Comment on this articleShare what you think and join the comments below.Write a comment →















