Pivot Tables in Excel — Complete Guide: Beginner to Advanced (2026)

Pivot tables are Excel’s single most powerful feature for analysing data. In 50 minutes you’ll go from raw rows to a fully interactive summary grid with slicers, calculated fields, date grouping, and a PivotChart — no formulas required. This guide covers every version from Excel 2010 to Microsoft 365.

Dr Waqas Rafique Dr Waqas Rafique · Founder & CTO · PhD, Statistical Machine Learning
· About

TL;DR

Click inside your data → Insert → PivotTable → OK. Drag a text field to Rows, a numeric field to Values. Excel summarises instantly. Add a date to Columns, group by month, add slicers, and insert a PivotChart. The whole workflow takes under 10 minutes on clean data.

Contents

  1. What is a Pivot Table?
  2. Before You Start — Getting Your Data Right
  3. Step 1 — Inserting Your First Pivot Table
  4. Step 2 — Adding a Second Dimension
  5. Step 3 — Grouping Date Fields
  6. Step 4 — Sorting and Filtering
  7. Step 5 — Calculated Fields
  8. Step 6 — Slicers
  9. Step 7 — Refreshing Data and GETPIVOTDATA
  10. Step 8 — PivotCharts
  11. Advanced Tips
  12. Common Errors & Fixes
  13. FAQ

What is a Pivot Table?

A pivot table is an interactive tool inside Excel that summarises, counts, totals, or averages data stored in a table — instantly, without writing a single formula. You drag fields into four areas (Rows, Columns, Values, Filters) and Excel does all the aggregation. Change your mind? Drag a different field in. The result updates in milliseconds.

Think of it as a way to ask questions of your data interactively. Instead of writing =SUMIFS(Revenue,Region,"North",Month,"January") for every cell in a report, a pivot table generates the entire revenue-by-region-by-month matrix automatically, with grand totals, sub-totals, and drill-down capability built in.

Real-world use cases

Sales analysis: Revenue by region and month — instantly see which territory underperformed in Q3. Product performance: Units sold and margin by SKU, filtered by warehouse. HR reporting: Headcount by department and job grade, grouped by hire date. Website analytics: Sessions by traffic source and landing page. Finance: Actuals vs budget by cost centre and month.

What pivot tables cannot do

Pivot tables are tools for aggregation across categories. They are not designed for row-by-row lookups (use VLOOKUP or XLOOKUP for that), they cannot transform or reshape individual records (use Power Query), and they are not ideal for complex multi-step calculations that reference other tables (use Power Pivot or DAX measures instead).

Supported Excel versions

Pivot tables work in Excel 2010, 2013, 2016, 2019, 2021, Microsoft 365, and (with limitations) Excel Online. Features like slicers arrived in 2010, Timeline slicers in 2013, and Data Model / Distinct Count in 2013+. All steps in this guide assume Excel 2016 or later unless noted.

📥 Free Pivot Table Excel Template

Upload your data to DataHub Pro to get auto-generated pivot summaries, charts, and AI insights in 60 seconds — no formula work required.

Get your free pivot dashboard →

Before You Create a Pivot Table — Getting Your Data Right

Pivot tables are only as good as the data they sit on. Spend five minutes checking these five rules before you insert a single pivot, and you’ll avoid 90% of the errors people encounter.

Rule 1: Every column must have a header

If any column header cell is blank, Excel will not know what to call that field in the PivotTable Fields pane. Either the field will be labelled “Column1” or the pivot will refuse to include it. Go to row 1 and make sure every column has a unique, descriptive label with no blank cells.

Rule 2: No blank rows or blank columns within the data range

A blank row in the middle of your data tells Excel that the data range has ended. Anything below the blank row will be excluded from the pivot. If you have intentionally blank rows as visual separators, remove them — use borders or alternating shading for visual grouping instead.

Rule 3: Each row = one record

Every row should represent one transaction, one sale, one customer visit, one employee — a single atomic event. Never put pre-aggregated data into a pivot source. If your spreadsheet already has subtotals, totals, or average rows, remove them before building the pivot or your numbers will be double-counted.

Rule 4: Dates must be real Excel dates

Excel stores dates as serial numbers (e.g. 45,000). If your date column shows text strings like “Jan 2024” or “01/01/2024” stored as text, grouping and sorting will not work. To check: format a date cell as a number — it should show a 5-digit integer. To fix text dates: select the column → Data → Text to Columns → Finish, or use =DATEVALUE(A2).

Rule 5: No merged cells

Merged cells break the contiguous rectangular structure that pivot tables require. Select all data (Ctrl+A) → Home → Merge & Center dropdown → Unmerge Cells. Then fill in the empty cells that the merge was hiding, usually by using a fill-down.

Bad data vs good data

✗ Bad data
DateRegionRevenue
Jan 2024North12,500
North8,200
Feb 20249,800
Total30,500
✓ Good data
DateRegionRevenue
01/01/2024North12500
15/01/2024North8200
03/02/2024South9800
17/02/2024East11400

Convert to an Excel Table first (strongly recommended)

Before inserting a pivot, press Ctrl+T to convert your data range to an Excel Table. Give it a meaningful name (e.g. SalesData) in the Table Design tab. This is essential for dynamic pivots: when you add new rows to the Table, the pivot’s source range automatically expands. Without a Table, you’ll have to manually update the pivot’s source range every time new data arrives.

💡 Pro tip: Name your Excel Table something descriptive like tbl_Sales or SalesData. When you have multiple pivots on a dashboard, named Tables make it immediately clear which pivot is sourced from which dataset.
1
2
3
4
5
6
7
8

1.Step 1 — Inserting Your First Pivot Table

Click any cell inside your data range (not a blank cell outside it). Then go to Insert → PivotTable. In the dialog that appears, Excel will have auto-selected your data range or Table name. Choose New Worksheet to keep the pivot on a dedicated tab, then click OK.

Excel opens a new sheet with a blank pivot grid on the left and the PivotTable Fields pane on the right. The Fields pane lists all your column headers as available fields. This is your control panel.

The four areas

At the bottom of the Fields pane are four drop areas: Filters (page-level filter at the top of the pivot), Columns (column headers across the top), Rows (row labels down the left), and Values (the numbers that get aggregated in the body).

Your first pivot in 30 seconds

Tick “Sales Rep” in the field list — Excel puts it in Rows automatically (because it’s text). Tick “Revenue” — Excel puts it in Values (because it’s numeric). You now have a one-column summary: revenue per sales rep. That’s a pivot table.

Changing the aggregation function

By default, Excel uses SUM for numeric fields. To change it: right-click the “Sum of Revenue” header in the pivot → Value Field Settings → choose Count, Average, Max, Min, or any other function. Use Average for metrics like satisfaction scores, Count for transaction volumes, and Max/Min for finding outliers.

Renaming value fields

The default name “Sum of Revenue” is ugly. Double-click the header cell directly in the pivot and type your preferred label, e.g. “Revenue”. Note: you cannot use the exact field name from your source data — add a space or punctuation if you want to name it identically.

💡 Pro tip: If the PivotTable Fields pane disappears, click anywhere inside the pivot to bring it back. If it still doesn’t appear, go to PivotTable Analyze tab → Show → Field List.

2.Step 2 — Adding a Second Dimension (Rows AND Columns)

A one-dimensional pivot (just Rows + Values) is useful, but the real power comes from adding a second dimension as Columns. This creates a matrix view — the classic “crosstab” or “pivot” format.

Drag your Month field (or Date if you have a date column — Excel will group it automatically in 2016+) into the Columns area. Now your pivot shows each sales rep as a row and each month as a column, with revenue at the intersection. Grand Total columns and rows appear automatically at the right and bottom edges.

Reordering fields within Rows

You can add multiple fields to the Rows area for nested breakdowns. Drag Region to Rows first, then drag Sales Rep below it. Now you have Region as the outer grouping with Sales Reps nested inside each Region — exactly like a grouped subtotal report, but interactive. Sub-totals appear automatically at each Region break.

Reordering row fields

In the Fields pane, drag the fields within the Rows box to change the nesting order. Region above Sales Rep gives you the regional breakdown first. Sales Rep above Region gives you a rep-level view grouped by region. The pivot restructures instantly.

3.Step 3 — Grouping Date Fields

When you drop a Date column onto Rows or Columns, Excel 2016+ may auto-group it into a hierarchy of Years → Quarters → Months. In earlier versions you get individual dates. Either way, you can manually control grouping precisely.

How to group manually

Right-click any date value in the pivot → Group. The grouping dialog lets you select one or more grouping levels simultaneously. Select “Months” and “Years” together (hold Ctrl to multi-select) to get a two-level date hierarchy that shows Jan 2024, Feb 2024, etc. separated under each year.

Grouping by quarter

In the grouping dialog, select “Quarters” (deselect everything else). Your date column will show Q1, Q2, Q3, Q4. Combined with Years selected as well, you get Q1 2024, Q2 2024, etc. This is ideal for financial reporting where quarterly performance matters most.

Ungrouping

Right-click any grouped date label in the pivot → Ungroup. This returns the field to individual dates or to the previous grouping level.

⚠ Common mistake: If you see “Cannot group that selection”, your date column contains text strings, blank cells, or error values. Even one blank cell prevents grouping across the entire field. Select the date column and filter for blanks or check the cell format — it should show “Date”, not “General” or “Text”.

4.Step 4 — Sorting and Filtering Your Pivot

Unsorted pivot tables are hard to read. Excel gives you granular control over both sort order and which items to display, without touching the source data.

Sorting by value (largest to smallest)

Click the dropdown arrow next to a Row field label → More Sort OptionsDescending → select “Sum of Revenue” (or your value field name) from the dropdown → OK. Your items are now ranked from highest to lowest revenue. This sort order persists automatically after refreshes.

Top 10 filter

Row field dropdown → Value Filters → Top 10. Change the count to 5 to show only your top 5 revenue-generating reps. This is a live filter — if the data changes after a refresh, the filter re-evaluates and may show different items. Use “Bottom 10” to find your lowest performers.

Label filters

Row field dropdown → Label Filters → Contains → type “London”. This filters the row labels themselves (e.g. office names, product names) rather than filtering by their values. Use “Begins With” to filter a product catalogue by category prefix code.

Report Filter (page-level filter)

Drag a field to the Filters area at the top of the Fields pane. A filter dropdown appears above the pivot table. Selecting a value from this dropdown changes the entire pivot to show only that subset — useful for filtering by Year, Country, or Business Unit without adding it as a row or column dimension.

Clearing filters

Click the dropdown on any filtered field → Clear Filter. Or go to PivotTable Analyze tab → Actions → Clear → Clear Filters to remove all filters at once.

5.Step 5 — Calculated Fields

Calculated fields let you create new derived metrics inside the pivot using arithmetic on your existing value fields — without adding columns to your source data. They appear as new columns in the Values area and update whenever you refresh or rearrange the pivot.

Creating a calculated field

Go to PivotTable Analyze tab → Fields, Items & SetsCalculated Field. In the dialog: enter a Name (e.g. “Profit Margin”) and a Formula. Field names must exactly match the column headers in your source data. Use the “Insert Field” button at the bottom to insert them without typos.

= (Revenue - Cost) / Revenue

Click Add → OK. The calculated field appears as a new column in Values. Format it as a percentage by right-clicking → Number Format → Percentage with 1 decimal place.

The “average of averages” trap

This is the most important limitation: calculated fields always sum the formula result per row, rather than computing the formula on the already-summed totals. If you create = Revenue / Units (average revenue per unit), the pivot calculates SUM(Revenue/Units for each source row) rather than SUM(Revenue)/SUM(Units). These give different — and at the subtotal/grand total level, incorrect — answers.

⚠ Warning: For ratio metrics like “average order value” or “margin %”, a calculated field will give mathematically incorrect grand totals and subtotals. The correct approach is to add the helper metric as a column in your source data table and aggregate it normally in the pivot. Or use Power Pivot DAX measures, which compute correctly on aggregated values.
💡 Pro tip: For complex calculations that involve multiple tables or need correct aggregation at every level, switch to Power Pivot and write DAX measures. A DAX measure calculates on the aggregated totals, not on individual row values, giving correct results at every subtotal and grand total level.

6.Step 6 — Slicers: Visual Interactive Filters

Slicers are visual button panels that filter the pivot when clicked. They’re the single biggest usability improvement over the dropdown Report Filter — your audience can see exactly what filters are applied and change them with one click, no dropdown hunting required.

Inserting a slicer

Click inside the pivot → Insert tab → Slicer (or PivotTable Analyze → Insert Slicer). Check the fields you want: e.g. Region and Product Category → OK. Two floating slicer panels appear. Click any button to filter; hold Ctrl to multi-select multiple values. Click the ✕ icon on the slicer header to clear the filter.

Connecting one slicer to multiple pivots

If you have two or more pivots on a dashboard all sourced from the same data, right-click the slicer → Report Connections → tick all the pivots you want the slicer to control. Now one click on the slicer filters all connected pivots simultaneously — essential for multi-chart dashboards.

Styling slicers

Select the slicer → Slicer tab → Slicer Styles. Choose a built-in style or right-click → New Slicer Style to create a custom dark-themed slicer matching your dashboard’s design. You can control the button colour, font, and border for selected vs unselected states independently.

Timeline slicer (for date fields)

For date fields, Insert → Timeline is even more powerful than a standard slicer. It shows a scrollable calendar bar where you click month, quarter, or year segments to filter. The bar moves as you drag, making time-range selection completely visual. Timeline is available from Excel 2013 onwards and requires a proper Excel date field (not text dates).

7.Step 7 — Refreshing Data and GETPIVOTDATA

This is the most common source of confusion: pivot tables do not automatically refresh when source data changes. If you add 500 new rows to your source table, the pivot still shows the old data until you explicitly refresh it.

Manual refresh

Right-click anywhere inside the pivot → Refresh. Or use PivotTable Analyze → Refresh → Refresh All to refresh every pivot in the workbook at once. Keyboard shortcut: Alt+F5 refreshes the active pivot; Ctrl+Alt+F5 refreshes all pivots and external data connections.

Auto-refresh on file open

Right-click the pivot → PivotTable Options → Data tab → check “Refresh data when opening the file”. Every time someone opens the workbook, the pivot pulls the latest data automatically. This is the closest you get to automatic refresh without VBA macros or Power Query.

GETPIVOTDATA function

GETPIVOTDATA pulls a specific aggregated value from a pivot table into any other cell in the workbook. This is useful when you want to reference a pivot result in a dashboard headline, a summary table, or a management report section.

=GETPIVOTDATA("Revenue", A3, "Region", "North", "Month", "Jan")

The arguments are: data field name, any cell inside the pivot, then pairs of [field name, item value] that specify the exact cell you want. The function updates automatically when the pivot refreshes.

💡 Pro tip: Excel automatically inserts GETPIVOTDATA when you click a pivot cell from another cell. To turn this off (so you get a plain cell reference instead): PivotTable Analyze tab → PivotTable dropdown → uncheck “Generate GetPivotData”.

8.Step 8 — PivotCharts: Visualising Pivot Data

A PivotChart is a chart connected to a pivot table. It respects all slicer filters, updates on refresh, and lets you interact with the data visually — changing the pivot structure also changes the chart structure instantly.

Inserting a PivotChart

With the pivot selected: Insert → PivotChart (not the standard chart). Choose your chart type and click OK. Alternatively, go to PivotTable Analyze → PivotChart. The chart appears connected to the pivot. Any slicer already connected to the pivot will automatically filter the PivotChart too.

Chart type recommendations

Clustered column: comparing values across categories (e.g. revenue by product). Line: trends over time (e.g. monthly revenue by region). Stacked bar: ranked lists where labels are long (e.g. top products by margin). Pie/donut: only when you have 5 or fewer categories and need to show composition (all values add to 100%).

Cleaning up the chart for presentation

PivotCharts include field buttons (small filter dropdowns inside the chart area) useful for analysis but unprofessional in a final dashboard. Right-click any field button → Hide All Field Buttons on Chart. Then: add data labels (right-click a series → Add Data Labels), delete gridlines (click them → Delete), set the chart area to “No Fill” for transparency, and increase the font size for readability.

Try It: Interactive Pivot Table Field Builder

Click any field chip to assign it to a pivot area. Each click cycles through: none → ROWS → COLUMNS → VALUES → FILTERS → none. The live preview table updates below as you assign fields.

Pivot Table Field Builder

Click a chip to cycle it through Rows → Columns → Values → Filters → None. Preview updates live.

Date
Region
Product
Sales Rep
Revenue
Units Sold
→ ROWS
↔ COLUMNS
Σ VALUES
▼ FILTERS
Live Preview
Assign fields above to see a live pivot preview.

Advanced Pivot Table Tips

Show Values As

Right-click any value cell in the pivot → Show Values As. Options include: % of Grand Total (each cell as a percentage of the overall total — great for contribution analysis), % of Row Total (each cell as a percentage of its row), Running Total In (cumulative sum across columns — perfect for year-to-date revenue), and Rank Largest to Smallest (auto-ranks items without sorting the rows). These transforms work in addition to your base aggregation and can be applied to a duplicate of the same field placed in Values twice.

Multiple Consolidation Ranges

Need to combine two separate data tables into one pivot? Press Alt+D+P to open the legacy PivotTable and PivotChart Wizard (not on the ribbon in modern Excel). Select “Multiple consolidation ranges”, click Next, and add each data range separately. This is a quick solution for combining monthly export files with identical column structures. For anything more complex — different column names, different row counts, needing to merge on a key — Power Query is the better tool.

Data Model and Power Pivot

For datasets over 1 million rows, or when you need to join multiple tables without VLOOKUP, tick “Add this data to the Data Model” when inserting the pivot. This loads your data into the in-memory Power Pivot engine, which handles far larger datasets and enables DAX measures for complex, aggregation-correct calculations. The Data Model is available in Excel 2013+ for Windows (not Mac currently).

Distinct Count — the most-requested missing feature

Standard pivot tables offer Sum, Count, Average, Max, Min, etc. but not Distinct Count (i.e. the count of unique values, e.g. how many unique customers placed an order in a month). Distinct Count is only available when you load your data into the Data Model. Check “Add this data to the Data Model” at the Create PivotTable dialog. Then in Value Field Settings, scroll to the bottom of the aggregation list to find Distinct Count.

💡 Pro tip: You can have both a Distinct Count field and regular Sum/Count fields in the same Data Model pivot. Add the customer ID field twice to Values — once as Distinct Count for unique customers and once as Count for total transactions. The ratio gives you average transactions per customer.

Common Pivot Table Errors & Fixes

“Cannot group that selection”

Cause: dates stored as text, blank cells in the date column, or mixed data types (some cells are dates, some are text). Fix: select the entire date column → Data → Text to Columns → set column data format to Date → Finish. Then remove the date field from the pivot and re-add it. Even one corrupted cell blocks grouping for the entire field.

Grand Total showing a wrong number

Cause: a Calculated Field computing a ratio (e.g. margin%). The grand total row sums the formula results for each individual row instead of computing the formula on the summed column totals — giving a mathematically meaningless grand total. Fix: either remove the grand total for that specific field (right-click → Subtotals and Filters → None for that field), or move the calculation to a helper column in your source data and aggregate it correctly.

Pivot not picking up new rows

Cause: source data is a static cell range (e.g. $A$1:$G$1000), not an Excel Table. New rows fall outside the defined range and are silently excluded. Fix: convert the source to a Table (Ctrl+T), then go to PivotTable Analyze → Change Data Source and reference the Table name instead of a cell range. Alternatively, just extend the range to include several thousand blank rows as buffer, though the Table method is cleaner.

#VALUE! in a calculated field

Cause: the formula references a field name that doesn’t exist in the pivot, is misspelled, or has spaces that aren’t wrapped correctly. Fix: go back to Fields, Items & Sets → Calculated Field → edit the formula. Use the “Insert Field” button at the bottom of the dialog to insert field names accurately rather than typing them manually — it handles special characters and spaces automatically.

Inconsistent decimal places after refresh

Cause: Excel applies General number formatting to pivot values by default, and direct cell formatting on pivot cells gets reset on refresh. Fix: right-click any value cell → Value Field Settings → Number Format → Number → set to 2 decimal places → OK. This number format is stored as part of the pivot definition and survives refreshes. For currency, choose Currency; for percentages, choose Percentage.

⚠ Warning: Formatting pivot cells directly via Home → Number Format will be wiped every time you refresh the pivot. Always set number format via Value Field Settings → Number Format so it persists as part of the pivot configuration rather than as a cell-level format.

Skip the Manual Work

DataHub Pro auto-generates pivot summaries, charts, and AI-driven insights from your raw data file in under 60 seconds. Upload your CSV or Excel, select your columns, and get an interactive dashboard instantly.

Try DataHub Pro free →

Frequently Asked Questions

How do I create a pivot table in Excel for beginners?
Start by clicking any cell inside your data. Go to Insert → PivotTable → choose New Worksheet → click OK. In the PivotTable Fields pane on the right, drag a text field (like Product or Region) to the Rows box, and drag a numeric field (like Revenue or Units) to the Values box. Excel instantly summarises the data. Change the aggregation from Sum to Count or Average by right-clicking the value field and selecting Value Field Settings. That is the complete basics of creating your first pivot table.
Why won’t my pivot table group dates?
The most common cause is that some or all of your date cells are stored as text rather than real Excel dates. To diagnose: select a date cell and check whether the cell format shows ‘General’ or ‘Text’ instead of ‘Date’. To fix: use Data → Text to Columns → Finish (with the date column selected), which forces Excel to re-parse the values. Alternatively, use DATEVALUE() to convert text dates. Also check for blank cells in the date column — even one blank cell prevents grouping across the entire field.
How do I get a distinct count in a pivot table?
Distinct Count is not available in standard Excel pivot tables — it only appears when your data is loaded into the Data Model. When inserting a pivot, tick the ‘Add this data to the Data Model’ checkbox at the bottom of the Create PivotTable dialog. Then when you add a field to Values, right-click → Value Field Settings → scroll to the bottom of the aggregation list to find ‘Distinct Count’. This is the most-requested feature missing from basic pivots.
Can I create a pivot table from multiple sheets?
Yes, using the PivotTable Wizard with Multiple Consolidation Ranges. Press Alt+D+P to open the legacy wizard (not available via the ribbon in modern Excel). Select ‘Multiple consolidation ranges’, click Next, and add each data range from your different sheets. Alternatively, use Power Query to combine the sheets into one unified table first — this gives you far more flexibility and is the recommended approach for anything beyond a simple two-sheet merge.
How do I add a percentage column to my pivot table?
Add the same numeric field to Values twice. The first instance shows the raw sum. Right-click the second instance → Value Field Settings → Show Values As tab → select ‘% of Grand Total’ (or ‘% of Row Total’ or ‘% of Column Total’ depending on your need). You can also show ‘% of Parent Row Total’ to get each item as a percentage of its parent group. Rename the field by double-clicking the column header in the pivot.
How do I stop my pivot table from changing column widths on refresh?
Right-click anywhere inside the pivot → PivotTable Options → Layout & Format tab → uncheck ‘Autofit column widths on update’. While you are in that dialog, also consider unchecking ‘Preserve cell formatting on update’ if you want your custom formatting to persist after refreshes. These two settings together give you full control over column widths and cell formats that otherwise reset every time you refresh.
What is the difference between a pivot table and SUMIFS?
SUMIFS is a formula that calculates a single conditional sum — you specify the criteria each time you write the formula. A pivot table is an interactive summary grid that automatically discovers all unique categories and aggregates across all of them at once. Use SUMIFS when you need a specific, fixed calculation embedded in a dashboard or report. Use a pivot table when you want to explore the data interactively, add multiple dimensions, apply slicers, or change aggregation without rewriting formulas. Pivot tables are faster to build for exploration; SUMIFS is more portable for fixed reporting.
Can I use pivot tables in Excel Online?
Excel Online (the free browser version) supports basic pivot tables — you can insert one, drag fields to Rows/Columns/Values, and change aggregation. However, it lacks several features: no grouping of date fields, no slicers, no calculated fields, no PivotCharts, and no Data Model (so no Distinct Count). For anything beyond a simple summary, the desktop version of Excel 2016 or later — or Microsoft 365 — is required.
How do I make my pivot table update automatically?
Pivot tables do not refresh automatically when source data changes. The fastest fix is to enable auto-refresh on file open: right-click the pivot → PivotTable Options → Data tab → check ‘Refresh data when opening the file’. For truly dynamic updates during a session, convert your source data to an Excel Table (Ctrl+T) before creating the pivot — this ensures the pivot range expands when new rows are added, though you still need to manually refresh. For fully automatic, real-time refresh, consider Power Query as your data source.
How do I create a pivot table from a CSV file?
Open the CSV in Excel (File → Open, or drag the .csv onto Excel). Once open, click any cell in the data, press Ctrl+T to convert it to an Excel Table, and name it something descriptive. Then go to Insert → PivotTable. Because you created a Table first, the pivot will automatically expand its range as new data is added. Save the file as .xlsx (not .csv) so the pivot table and any formatting are preserved — pivot tables cannot be saved in the CSV format.

Related Tutorials