How to Fix Excel 365 Not Supporting External SQL Subqueries
Question details
Users are seeking a way to run SQL subqueries against external workbooks in Excel 365, or find working alternatives, as the feature returns an error in the current update.

- Product
- Microsoft Excel 365
- Device & OS
- not provided
- Scenario
- Attempting to execute SQL subqueries that reference external workbooks or worksheet ranges for data processing.
- Observed behavior
- Excel 365 version 2511 returns an error because SQL subqueries against external workbook ranges are unavailable by design.
Ensure that your external source workbooks are saved locally or on a stable network drive before attempting any data migration or transformation.
Use Power Query to Import and Transform Data
Power Query is the officially recommended alternative to SQL subqueries for linking and transforming data from external workbooks.
Since direct SQL subqueries referencing external ranges are no longer supported in version 2511, Power Query provides a robust, native toolset to pull and manipulate data without writing SQL code.
Open your main Excel workbook, navigate to the 'Data' tab on the ribbon, and click on 'Get Data'.
Choose 'From File' and then click 'From Workbook'. Browse to the location of your external source workbook and select it.
Select the sheets or tables you need from the Navigator window, then click 'Transform Data' to open the Power Query Editor.
Apply your required filtering, merging, or calculations within Power Query, then click 'Close & Load' to bring the structured data into your workbook.

Consolidate Data into a Single Workbook
By bringing the external data into your current workbook first, you can apply SQL-based logic locally without triggering the external reference error.
Try WPS Office for Your Data Management Needs
If you are frustrated by sudden feature deprecations or version limitations in Microsoft Excel 365, consider switching to WPS Office. It provides a lightweight, highly compatible, and free alternative with robust data processing capabilities.
- 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite.
- 2. Open Your Spreadsheets: Launch WPS Spreadsheet and seamlessly open your existing .xlsx workbooks.
- 3. Process Your Data: Use the familiar formulas, data pivot tools, and features to manage your information without subscription barriers.

Frequently Asked Questions
Why did my SQL subqueries stop working in Excel 365?
In Excel 365 version 2511, Microsoft removed support for SQL subqueries that reference external workbooks or ranges by design, which causes the operation to return an error.
Is there a setting to re-enable external SQL subqueries in Excel version 2511?
No, there is currently no supported setting, configuration, or registry key to re-enable this functionality in the version 2511 update.
How can I request Microsoft to bring back SQL subqueries for external workbooks?
You can submit a feature request or share your feedback directly with the development team through Microsoft's official Feedback Portal at feedbackportal.microsoft.com.
What is the best alternative to SQL subqueries in modern Excel?
Microsoft recommends using Power Query to import, transform, and merge data from external sources, as it is fully supported and provides a robust visual interface for data manipulation.




