How to Remove Unwanted Columns from an Excel Data Dump Using Power Query
Question details
The user needs to extract specific columns from a large Excel or CSV data dump without altering the original source file.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Processing a large CSV or Excel report to isolate and analyze only the relevant data fields.
- Observed behavior
- The goal is to display the filtered columns on a separate worksheet where the output supports independent filtering and updates dynamically when the source data changes.
Ensure your source dataset (whether an external CSV or an internal Excel report) is organized with clear header names in the first row and no empty header cells.
Extract Required Columns Using Power Query
Use Power Query's "Remove Other Columns" feature to dynamically filter your data dump and load only the necessary data to a new sheet.
Power Query is an excellent tool for dynamic data extraction. By instructing it to keep only specific columns, you ensure that even if new, unwanted columns are added to the source data later, your final report remains clean and uncluttered.
Select your source data range in the worksheet and press Ctrl + T. Ensure the 'My table has headers' box is checked, then click OK.
Navigate to the Data tab on the Excel ribbon. Click on 'From Table/Range' in the Get & Transform Data group to open the Power Query Editor.
In the Power Query Editor, hold down the Ctrl key and click the headers of all the columns you want to retain for your analysis.
Right-click on one of the highlighted column headers and select 'Remove Other Columns' from the context menu. All unselected columns will be removed from the view.
Click the 'Close & Load' button on the Home tab, select 'Close & Load To...', choose 'Table', and select 'New Worksheet' to output your clean data.
Whenever your original data dump is updated, right-click anywhere inside your new, cleaned table and select 'Refresh' to instantly update the extracted columns.

Manually Extract Columns using Copy and Paste
If you do not need the data to update dynamically and only want a quick, one-time extraction, you can manually copy the needed columns.
Process Large Data Dumps Faster with WPS Office
If advanced tools like Power Query slow down your computer, WPS Office provides a lightweight, blazing-fast alternative for handling large CSVs and Excel data dumps. Enjoy premium data analysis tools and high format compatibility without the costly subscription.
- 1. Download and Install: Get WPS Office for free from the official website and complete the quick installation.
- 2. Open Your Data Dump: Launch WPS Spreadsheet and open your existing .xlsx or .csv data file directly.
- 3. Filter and Analyze: Use the Data tab to apply advanced filters and extract the exact columns you need effortlessly.

Frequently Asked Questions
Does removing columns in Power Query delete the original data?
No. Power Query establishes a separate, dynamic connection to your data. Removing columns inside the Power Query Editor only modifies the output loaded to the new worksheet. Your original source data remains completely untouched.
How do I get my removed columns back if I made a mistake?
In the Power Query Editor, look at the 'Applied Steps' pane on the right side of the screen. You can click the 'X' next to the 'Removed Other Columns' step to undo the action and instantly restore the hidden columns.
Can I apply this column removal to multiple CSV files at once?
Yes. You can use the 'Get Data from Folder' option to combine multiple CSV dumps into a single table. Once combined in the Power Query Editor, you can apply the 'Remove Other Columns' step before loading the final consolidated dataset.
Why isn't my extracted data updating when the source file changes?
Power Query outputs do not update in real-time automatically. You must right-click anywhere inside the extracted table and select 'Refresh', or navigate to the Data tab and click 'Refresh All' to fetch the latest changes from your source file.




