Power Query Problems

Automatically Import a Daily CSV File into an Excel Table

Bushra ParveenBushra Parveen Dec 2, 2026 868 views

Question details

The user wants to import an updated daily CSV file into a usable Excel table.

Automatically Import a Daily CSV File into an Excel Table
Product
Microsoft Excel Power Query
Device & OS
not provided
Scenario
A comma-separated file with the same filename is downloaded every day and needs to be loaded into an Excel table.
Observed behavior
The desired table should reflect the latest CSV data after the source file is replaced and the query is refreshed.
Before you start

Save the CSV in a folder where each daily download can replace the previous file using the same filename. Check that the file uses commas as delimiters and that its columns remain consistent.

Solution 1Recommended

Import and Refresh the CSV with Excel Power Query

Use a Power Query connection to load the CSV into a table and refresh it after the daily file is replaced.

1
Connect to the CSV

In Excel, select Data > Get Data > From File > From Text/CSV, then choose the CSV file.

2
Check the preview

Confirm that the delimiter is Comma and that the columns appear correctly. Select Transform Data if you need to filter or change the data.

3
Load the table

Select Load To and choose Table and a destination in the workbook. If you opened the Power Query Editor, use Close & Load To to choose the table destination.

4
Refresh the daily data

Replace the source CSV with the new file at the same path and filename, then select Data > Refresh All in Excel.

5
Refresh when opening

To refresh when the workbook opens, select Data > Queries & Connections, right-click the query, choose Properties, and enable Refresh data when opening the file.

Import and Refresh the CSV with Excel Power Query
Refresh timing: Refreshing when the workbook opens does not download or replace the CSV. Make sure the new file is in place before opening or refreshing the workbook.
Free Microsoft Office alternative

Work with CSV Data in WPS Spreadsheets

WPS Office is a free, lightweight alternative with a familiar interface for opening CSV data and working with Excel files. It does not configure or fix Excel Power Query refreshes, but it can help you work with spreadsheet data when migrating from Microsoft Office.

Open and work with CSV data in WPS SpreadsheetsCompatible with Microsoft Excel formats, including XLSX and XLSFamiliar spreadsheet interface for an easier transition from ExcelFree and lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Will Excel refresh the table as soon as the CSV changes?

Not with the setup described here. Select Data > Refresh All after replacing the file, or enable Refresh data when opening the file in the query properties.

What happens if I move or rename the CSV file?

The query may no longer find its source. Keep the same folder path and filename, or edit the source in the Power Query Editor to point to the new location.

Can I import daily files with different filenames?

Yes. In Excel, select Data > Get Data > From File > From Folder and configure a folder query for the relevant CSV files. Check which files are included so you import only the data you need.

Can I change or filter the CSV data before loading it?

Yes. In the Text/CSV preview, select Transform Data to open the Power Query Editor. Apply your changes, then select Close & Load To to load the result.