Power Query in Excel refreshes data connections to ensure your tables stay current with external sources like databases, APIs, or web pages. The fastest way to trigger a refresh is using a short keyboard shortcut or menu command—no manual steps needed if you’re already in the Power Query Editor.
What You'll Need
- Excel installed (365 or 2019+ supports Power Query; older versions may have limited refresh options).
- A Power Query connection (loaded data source, web query, or merged table).
- If refreshing manually, the file must be open—no refreshes work on saved but closed files.
- For advanced scenarios, you may need a Power Query script (M language), but this guide covers the built-in methods.
Step-by-Step
-
Open the Power Query Editor.
Go to Data in the Excel ribbon. If no connections appear, check if data is loaded into a table. If not, load your source first (e.g., from a web query or external file).
Labels may differ slightly by Excel version (e.g., "Get Data" vs. "Get & Transform Data"). On Windows versions before Excel 2016, Power Query is called "Microsoft Query."
-
Refresh the connection.
In the Power Query Editor, click Home > Transform Data > Refresh. This updates all active queries with the latest data from their sources.
If your query uses a web or file connection, Excel will attempt to reload it automatically after refresh. For in-memory tables, the data stays cached until manually refreshed.
-
Use the keyboard shortcut.
While in the Power Query Editor, press Ctrl+Alt+E (Windows) or Cmd+Alt+E (Mac). This directly refreshes all queries and returns you to Excel.
This shortcut is especially handy if you repeatedly need to update data without exiting the editor.
-
Refresh a single query.
If you want to update just one query (e.g., a web table), right-click its name in the Query tab and select Refresh.
This avoids refreshing all connected data sources.
-
Run a Power Query script (M code).
For advanced users, edit the query steps in the M code editor (right-click query > Advanced Editor) and add a refresh command like:
Refresh = trueThen save the file to apply changes.This requires familiarity with M syntax and isn’t needed for basic refreshes.
Common Mistakes
-
Closing Excel after refreshing.
Power Query connections need to stay open during refresh. If Excel closes unexpectedly, the data may not update properly. Save your work first.
-
Skipping data source permission checks.
For web or file connections, Excel may prompt for credentials. Authenticate before refreshing—omitting this will fail silently.
-
Assuming all queries refresh the same way.
Some queries (e.g., stored procedures in SQL) require admin rights or specific server permissions. Check connection properties for errors.
-
Using the wrong shortcut.
The Ctrl+Alt+E shortcut only works in the Power Query Editor. Pressing it while in Excel’s main window does nothing.
Tips
-
Auto-refresh settings.
Add a timer to your Excel file: Data > Get Data > From Other Sources > From File > Folder. Check Refresh Automatically to update hourly.
-
Refresh only specific queries.
Use the Query tab to filter active queries. Right-click and select Refresh only for the needed source.
-
Check connection status.
Hover over a query name in the Query tab to see if it’s connected. A broken link (e.g., expired web URL) will prevent refresh.
-
Use Power Query Profiler.
For debugging, open the Data tab and click Profiler to track query performance before and after refresh.
-
Avoid manual refresh delays.
Large datasets may show a progress bar during refresh. Close other Excel windows to free up resources.
Troubleshooting
-
Refresh fails with "Error loading data."
Check the source URL (for web queries) or file path. Delete the query and re-load it from scratch. For SQL connections, verify credentials and server accessibility.
-
Data appears blank after refresh.
Inspect the query steps for filters or transformations that might exclude rows. Right-click the query > View Data to preview raw data before refresh.
-
Keyboard shortcut not working.
Ensure you’re in the Power Query Editor. Restart Excel or check for keyboard shortcut conflicts (e.g., Mac vs. Windows layouts).
-
Refresh stuck in "loading" forever.
Close Excel, wait 30 seconds, then reopen. If the issue persists, delete the query and reload the source manually.
-
Power Query not showing in Data tab.
Enable it via File > Options > Add-ins > Check Power Query User Interface (Excel 2016+).
Frequently Asked Questions
Why does my refresh fail even after checking credentials?
The issue may lie in the source format. For web queries, ensure the URL is accessible. For SQL connections, verify the server is running and the query syntax is correct. Use Debug mode in the M editor to trace errors.
Can I refresh Power Query without Excel?
No. Power Query requires the Excel client to manage connections and refresh logic. Standalone tools like Power BI or M-code scripts handle refreshes differently.
How do I refresh a query that opened as read-only?
Right-click the query > Edit Query. The query will switch to edit mode, allowing you to refresh or modify it. Save to apply changes.
Will refreshing break my existing tables?
No, refreshes only update the underlying data sources. Your transformed tables (e.g., pivots, calculations) remain intact unless overwritten in the Query Editor.
What if my refresh shows "No data" after loading?
The query may have filters or errors in the source. Open the query steps to check for empty results or syntax issues. Clear all steps and rebuild from the source.
How often should I refresh?
Frequency depends on your data. For live dashboards, refresh hourly. For static files, refresh only when needed. Set reminders in Excel’s Get Data options.