Power Query Problems

Import CSV Data into Excel Power Query Without Keeping the Source File

Rana GarciaRana Garcia Dec 2, 2026 868 views

Question details

Import CSV data into Excel and use it in Power Query without retaining a dependency on the original CSV file.

Import CSV Data into Excel Power Query Without Keeping the Source File
Product
Microsoft Excel Power Query
Device & OS
not provided
Scenario
The user wants to keep the imported data in the workbook and apply Power Query transformations after the CSV file is removed.
Observed behavior
A query that uses the CSV file as its source cannot refresh when the file is deleted or its path is unavailable.
Before you start

Make sure the CSV file is accessible for the initial import. Check column types during import, especially for identifiers with leading zeros, so the stored table contains the values you need.

Solution 1Recommended

Use an Excel table as the new Power Query source

Keep an independent copy of the imported data in the workbook, then build a new query from that table.

1
Import the CSV

In Excel, select Data > Get Data > From File > From Text/CSV, choose the file, and load the data to a worksheet table.

2
Copy the data as values

Select the imported table, including its headers, and copy it. On a new worksheet, use Home > Paste > Values to create a copy that is independent of the original query.

3
Create a source table

Select the pasted range and choose Insert > Table. Confirm that the table has headers, then select a cell inside it.

4
Create and load the new query

Select Data > From Table/Range, apply the transformations you need in Power Query Editor, and choose Close & Load. Load the results to a separate worksheet or location so they do not overwrite the source table.

5
Remove the CSV dependency

In Data > Queries & Connections, delete the original CSV-based query once the new query and source table are working. Save the workbook, then refresh the new query to confirm it uses the workbook table rather than the CSV.

Use an Excel table as the new Power Query source
Refresh uses the workbook table: The new query can refresh from the stored table, but it will not pick up changes made to the original CSV file. Keep the source table in the workbook.
Free Microsoft Office alternative

Work with CSV and Excel files in WPS Spreadsheets

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface. Open CSV and Excel files for everyday editing and move between common Office formats. It does not remove or repair an Excel Power Query source dependency.

Open and edit CSV data in WPS SpreadsheetsWork with Microsoft Excel formats, including XLSX and XLSUse a familiar interface for everyday spreadsheet tasksMove existing Office files into a lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Can I delete the CSV after creating the workbook table?

Yes, once the data has been pasted as values into an independent table and the new query has been confirmed to use that table. Save the workbook and refresh the new query before deleting the CSV.

Will the new query update when the CSV changes?

No. The new query reads the table stored in the workbook. To update its source data, edit or replace the values in that table and refresh the query.

Why should I paste the imported data as values?

Pasting values onto a separate worksheet creates a table that is independent of the original CSV-based query. Use Home > Paste > Values before creating the new table.

Can I remove the table after creating the new query?

No. The table is the new query's source, so it must remain in the workbook for the query to refresh.