Data Import & Export

Fix SharePoint Online Export to Excel Creating a Query.iqy File

Bushra ParveenBushra Parveen Nov 3, 2026 868 views

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.

How to Manage SharePoint Online Export Creating a Query.iqy File
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.
Before you start

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.

Solution 1Recommended

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.

1
Apply List Filters

Open your SharePoint Online list and use the column headers to filter the view exactly as you want it exported.

2
Select Export to CSV

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'.

3
Open the CSV File

Locate the downloaded CSV file in your computer's Downloads folder and open it using your preferred spreadsheet application.

Use 'Export to CSV' Instead of Excel
Static Data Advantage: A CSV file does not require internet connectivity or Microsoft credentials to open, making it much easier to share with other users on a single computer.
Free Microsoft Office alternative

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. 1. Download WPS Office: Install WPS Office for free from the official website.
  2. 2. Open WPS Spreadsheets: Launch the application and select the Spreadsheets module.
  3. 3. Load Your Exported Data: Click 'Open' and select the CSV file exported from SharePoint to begin working immediately.
Fully compatible with Microsoft Excel file formats (.xlsx, .xls, .csv)Lightweight software that installs quickly and launches in secondsNo mandatory cloud account logins required to view your local filesFamiliar spreadsheet interface requiring zero learning curve
QA img-9

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.