Fix SharePoint Online Export to Excel Creating a Query.iqy File
Question details
The user needs a way to successfully export filtered SharePoint Online lists without being forced into an IQY web query file that reuses cached credentials and ignores applied view filters.

- Product
- SharePoint Online, Microsoft Excel
- Device & OS
- not provided
- Scenario
- Exporting a specifically filtered list view from SharePoint Online to a spreadsheet for data analysis or sharing with different users.
- Observed behavior
- Clicking export generates a query.iqy file instead of a standard spreadsheet. This file creates a one-way web query that requests credentials, automatically reuses saved logins, and frequently exports the entire list instead of the filtered view.
Verify that your browser is not automatically caching an incorrect Microsoft 365 account, and ensure you have the necessary SharePoint permissions to read and export list data.
Use 'Export to CSV' Instead of Excel
Exporting to CSV bypasses the Excel web query (.iqy) generation, ensuring that your downloaded file retains the exact filters you applied to the SharePoint view without requiring live login credentials.
SharePoint's 'Export to Excel' feature relies on a one-way Excel web query connection which often defaults to the underlying full list data rather than the filtered front-end view.
By exporting to a CSV file, you generate a static, flat-file snapshot of your data exactly as it appears on your screen.
Open your SharePoint Online list and use the column headers to filter the view exactly as you want it exported.
Click the 'Export' button located in the top command bar of the SharePoint list, and select 'Export to CSV' from the dropdown menu instead of 'Export to Excel'.
Locate the downloaded CSV file in your computer's Downloads folder and open it using your preferred spreadsheet application.

Clear Saved Windows Credentials for IQY Files
If you are required to use the IQY web query file but need to run it as a different user, you must clear your cached Microsoft Office credentials from your operating system.
Open Exported CSVs and Spreadsheets Seamlessly with WPS Office
Struggling with complex Microsoft Excel web queries and credential loops can slow down your workflow. WPS Office provides a highly compatible, lightweight, and free alternative to easily open, analyze, and format your exported SharePoint CSV files without any login hurdles.
- 1. Download WPS Office: Install WPS Office for free from the official website.
- 2. Open WPS Spreadsheets: Launch the application and select the Spreadsheets module.
- 3. Load Your Exported Data: Click 'Open' and select the CSV file exported from SharePoint to begin working immediately.

Frequently Asked Questions
What is a query.iqy file?
A query.iqy file is a plain text file containing a web query designed for Microsoft Excel. Instead of storing actual spreadsheet data, it stores instructions on how Excel should connect to an external web data source, such as a SharePoint list, to download the data dynamically.
Why does SharePoint export the full list instead of my filtered view?
The standard 'Export to Excel' function establishes a data connection to the backend database list. Depending on your SharePoint version and view settings, this web query often ignores front-end view filters. Using 'Export to CSV' is the recommended workaround to capture purely filtered results.
How can I convert an IQY file to a normal Excel XLSX file?
Open the IQY file in Microsoft Excel and allow the web query to load the data. Once the data appears in the spreadsheet, click 'File', select 'Save As', and choose 'Excel Workbook (*.xlsx)' from the file format dropdown menu to save it as a static document.
Why does the IQY file keep logging me into the wrong account?
Excel relies on your operating system's cached credentials to silently authenticate web queries. If a previous user's Microsoft 365 credentials are saved in the Windows Credential Manager, Excel will automatically reuse them instead of prompting you for a new username and password.




