Asset 20 8 2
Does AI recommend your business? Run the free check →

Join 15,000 business owners, marketers and entrepreneurs. The Sunday newsletter you'll be annoyed only arrives once a week.

Article

How to Edit a PivotTable in Excel (2026): Source and Refresh

Select the PivotTable, go to the Analyze tab, choose Change Data Source in the Data group, and enter the new table or range. If you only need the latest data, select Refresh on the PivotTable Analyze tab or press Alt+F5. Both routes are below, with the one case where the source can't be changed.

The limit to know first: the Workbook Data Model

Before you try to change anything, check how the PivotTable was built. If it's based on the Workbook Data Model, you can't change its data source. Microsoft also suggests creating a new PivotTable if the columns in your source change substantially. That's from its page on how to change the source data for a PivotTable, and it saves a lot of head-scratching when the Change Data Source button seems to do nothing.

Change the source data: the steps

Use this when the PivotTable is pointing at the wrong range, or when your data has grown and you want the extra rows included.

  1. Select the PivotTable report.
  2. On the Analyze tab, in the Data group, select Change Data Source, then select Change Data Source again.
  3. In the dialog box, click Select a table or range.
  4. Enter the first cell of the new range in the Table/Range text box.

If you'd rather point the PivotTable at a different connection altogether, select Use an external data source instead, then choose Choose Connection.

Refresh instead: when the source is right but the numbers are old

Stale numbers need a refresh, not a new source. Microsoft sets out the options in its guide to how to refresh PivotTable data.

  1. Select the PivotTable.
  2. On the PivotTable Analyze tab, choose Refresh in the Data group.
  3. Shortcut: press Alt+F5, or right-click and choose Refresh.
What you wantWhat to do
Refresh this PivotTableSelect it, then Refresh on the PivotTable Analyze tab, or press Alt+F5
Refresh every PivotTable in the workbookSelect the Refresh arrow and choose Refresh All
Stop a long refreshSelect the Refresh arrow and choose Cancel Refresh
Refresh whenever the file opensSelect Options, then on the Data tab check Refresh data when opening the file

Which one should you use?

Think of it as two separate questions. Where does the PivotTable look for its data, and has that data moved on since you last looked? The first is a source job and the second is a refresh job, and mixing them up is the most common reason people feel an edit hasn't worked.

The quickest test is to ask what changed. If rows were added to your data and the PivotTable doesn't show them, the range is probably wrong, so change the source. If the range is right and someone simply updated the numbers underneath, refresh.

It also helps to be deliberate about the order. Fix the source first if you need to, then refresh, then check the figures. Doing it the other way round just refreshes the wrong data.

Troubleshooting: when edits don't behave

Change Data Source won't let me change anything

Look at how the report was built. When it sits on the Data Model, the source stays locked, and starting afresh is the way round it.

My column widths and formatting keep resetting on refresh

Under Options, go to Layout & Format and check Autofit column widths on update and Preserve cell formatting on update. Those two settings are the ones Microsoft names for keeping your layout through a refresh.

Work with me

Want AI doing the heavy lifting in your marketing?

I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.

The refresh is taking ages

Use the little arrow beside Refresh and pick Cancel Refresh. That halts it, and you can inspect the source before trying again.

If you're still setting things up, our guide to making a pivot table in Excel starts from the beginning, and there's a version for Google Sheets too.

Frequently asked questions

What's the difference between changing the source and refreshing?

Changing the source tells the PivotTable to look at a different table or range. Refreshing keeps the same source and pulls in its latest data.

What's the shortcut to refresh a PivotTable?

Press Alt+F5 with the PivotTable selected. You can also right-click the PivotTable and select Refresh.

How do I update every PivotTable in the workbook at once?

Select the Refresh arrow and choose Refresh All.

Can I make a PivotTable refresh itself when I open the file?

Yes. Select Options, then on the Data tab check Refresh data when opening the file.

Why is my data source stuck?

That usually means the report is built on the Workbook Data Model, where the source is fixed. A brand new report is the workaround Microsoft suggests.

Do I have to change the source every time I add rows?

Only when the range doesn't cover the new rows. You enter the first cell of the range in the dialog. If the range already covers them, a refresh is all you need.

Published and maintained by the Lilach Bullock team, covering marketing, AI and business growth.
Your buyers are asking AI who to use. Does it say you?

See for free whether ChatGPT, Claude, Perplexity, Gemini and Google name you, and get the plan to become the answer.

Check my AI visibility →
Sundays only

Get the Sunday newsletter.

One email a week. AI experiments, marketing tactics, and the workflows Lilach is building right now in her own business.

Subscribe free

Let’s get your marketing running on AI.

Book a free 30-minute call

We figure out what you need, where AI fits in, and what working together would look like.

Book the call →

Or take the 30-second calculator

You’ll see the hours and the money quietly leaking out of your week, and the three workflows worth building first.

Take the calculator →

Or grab the free AI resource library

Prompt packs, templates, checklists, and swipe files. The exact tools I build for paying clients. Yours, free.

Get the library →
Keep reading

More from the blog.