Automatically Import a Daily CSV File into an Excel Table
Question details
The user wants to import an updated daily CSV file into a usable 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.
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.
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.
In Excel, select Data > Get Data > From File > From Text/CSV, then choose the CSV file.
Confirm that the delimiter is Comma and that the columns appear correctly. Select Transform Data if you need to filter or change the data.
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.
Replace the source CSV with the new file at the same path and filename, then select Data > Refresh All in Excel.
To refresh when the workbook opens, select Data > Queries & Connections, right-click the query, choose Properties, and enable Refresh data when opening the file.

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.

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.




