Fix Excel.CurrentWorkbook Not Showing Tables in Power Query
Question details
The user's Power Query is failing to load existing Excel tables because the Excel.CurrentWorkbook function returns no results.
- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Attempting to retrieve data from an existing Excel table using the Excel.CurrentWorkbook() function in Power Query.
- Observed behavior
- The query returns empty results or no tables, typically because the table is stored in a different workbook than the query itself.
Before troubleshooting, verify the exact file name and location of both the workbook containing your target data table and the workbook where you are building the query.
Consolidate the Query and Table into the Same Workbook
The Excel.CurrentWorkbook function strictly references the workbook where the query itself is stored. To fix the issue, the table and query must reside in the exact same file.
When you use Excel.CurrentWorkbook(), Power Query looks for tables and named ranges within the specific file hosting the query. If your source data table is in 'Data.xlsx' but your query is being created in 'Report.xlsx', the function will not find the table and will return an empty result.
Open the workbook where your target Excel table is located. Ensure the data is actually formatted as a Table (Insert > Table) and note the file name.
Identify the workbook where you are currently writing or executing the Power Query.
Either copy your source data table into a new sheet within the query's workbook, or recreate your Power Query inside the workbook that currently holds the data table.
Once the table and query share the same workbook, open the Power Query Editor, click 'Refresh Preview', and your table will now appear in the Excel.CurrentWorkbook results.
Process Data Seamlessly with WPS Office
If you are struggling with complex Power Query functions and cross-workbook data referencing in Microsoft Excel, consider switching to WPS Office. It offers a lightweight, highly compatible spreadsheet application to manage, analyze, and visualize your data effortlessly without the steep learning curve.
- 1. Download and Install: Get the free WPS Office suite from the official website and install it on your device.
- 2. Open Multiple Workbooks: Launch WPS Spreadsheet and easily open multiple .xlsx files in a convenient tabbed interface.
- 3. Reference Data Easily: Use standard formulas like VLOOKUP or cross-workbook referencing to combine your data effortlessly.

Frequently Asked Questions
How do I query data from a different Excel workbook?
Instead of using Excel.CurrentWorkbook(), use the 'Get Data > From File > From Workbook' feature in Excel. This generates the Excel.Workbook(File.Contents("filepath")) function to safely extract tables from external files.
Why does my named range not appear in Excel.CurrentWorkbook?
Excel.CurrentWorkbook will only list named ranges and tables that exist in the exact workbook where the query is saved. Verify that your named range is defined in the current file, not an external one.
Does Excel.CurrentWorkbook update automatically when I add new tables?
Yes, if the new tables are created within the same workbook as the query, they will be included in the Excel.CurrentWorkbook() output upon refreshing the query.




