Power Query Problems

How to Remove Unwanted Columns from an Excel Data Dump Using Power Query

Ayan MasoodAyan Masood Nov 3, 2026 871 views

Question details

The user needs to extract specific columns from a large Excel or CSV data dump without altering the original source file.

How to Remove Unwanted Columns from an Excel Data Dump
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.
Before you start

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.

Solution 1Recommended

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.

1
Convert Data to an Excel Table

Select your source data range in the worksheet and press Ctrl + T. Ensure the 'My table has headers' box is checked, then click OK.

2
Load into Power Query

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.

3
Select the Columns to Keep

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.

4
Remove Unwanted Columns

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.

5
Load Data to a New Worksheet

Click the 'Close & Load' button on the Home tab, select 'Close & Load To...', choose 'Table', and select 'New Worksheet' to output your clean data.

6
Refresh When Source Changes

Whenever your original data dump is updated, right-click anywhere inside your new, cleaned table and select 'Refresh' to instantly update the extracted columns.

Extract Required Columns Using Power Query
Non-Destructive Editing: Your original source data remains completely untouched. Power Query only processes the data and outputs the result to a new destination.
Free Microsoft Office alternative

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. 1. Download and Install: Get WPS Office for free from the official website and complete the quick installation.
  2. 2. Open Your Data Dump: Launch WPS Spreadsheet and open your existing .xlsx or .csv data file directly.
  3. 3. Filter and Analyze: Use the Data tab to apply advanced filters and extract the exact columns you need effortlessly.
Fully compatible with Microsoft Excel formats (.xlsx, .xls, .csv).Lightweight architecture handles massive CSV data dumps smoothly and quickly.Intuitive built-in data sorting and advanced filtering for rapid extraction.Familiar tabbed interface requiring zero learning curve for Excel users.
QA img-9

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.