How to Filter Out Blank Rows Before Copying Excel Data
Question details
The user needs to exclude rows containing blank values in a specific column while copying a dataset from Excel to another application, ensuring adjacent data remains aligned.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Copying information from an Excel spreadsheet to another program without including rows that have blank cells in certain columns.
- Observed behavior
- The goal is to cleanly copy only the rows with data, omitting the blank rows, rather than manually deleting them or disrupting the dataset's structure.
Ensure your dataset has clear column headers, as this makes applying filters much easier and prevents the first row of data from being mistakenly treated as a header.
Use the Filter Tool and Copy Visible Cells
This is the safest and most reliable method to hide blank rows and copy only the data you need.
Instead of permanently deleting blank rows—which can disrupt referencing formulas or original dataset structures—you can use Excel's built-in filter to hide them temporarily. Using a specific keyboard shortcut ensures that the hidden rows are not accidentally copied to your clipboard.
Highlight the entire dataset you want to copy, making sure to include the column headers.
Navigate to the 'Data' tab on the Excel ribbon and click the 'Filter' button. This will add drop-down arrows to each of your column headers.
Click the filter drop-down arrow on the specific column containing the blanks you want to exclude. Scroll to the bottom of the list, uncheck the '(Blanks)' option, and click 'OK'.
Highlight the newly filtered data. Press 'Alt + ;' (Alt and semicolon) on your keyboard. This shortcut selects only the visible cells, strictly ignoring the hidden blank rows.
Press 'Ctrl + C' to copy the selection. You will see a moving dashed line around the visible rows. Navigate to your destination program and press 'Ctrl + V' to paste the clean data.

Hide Rows Using Go To Special
An alternative way to quickly select all blank cells in a column and hide their corresponding rows before copying.
Filter and Copy Data Quickly in WPS Spreadsheet
WPS Spreadsheet provides intuitive filtering tools and robust shortcut support to help you manage, clean, and export data without the hassle of blank rows.
- 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your spreadsheet document.
- 2. Apply Filters: Highlight your data, navigate to the Data tab, and click 'AutoFilter'.
- 3. Hide Blanks: Click the drop-down on your target column and uncheck the '(Blanks)' option.
- 4. Copy Visible Data: Select the filtered data, press Alt + ; to select visible cells, copy it, and paste it into your target application seamlessly.

Frequently Asked Questions
Why do hidden blank rows still appear when I paste to another program?
If you do not use the 'Alt + ;' shortcut to select 'Visible cells only' before copying, Excel may copy the hidden rows in the background. Pressing Alt + ; ensures only the data currently visible on your screen is copied to the clipboard.
Can I permanently delete the blank rows instead of just filtering them?
Yes. You can use 'Go To Special' > 'Blanks' to select all empty cells in a column. Once selected, right-click one of the highlighted cells, choose 'Delete', and select 'Entire row'. However, filtering is usually recommended because it is safer and preserves your original dataset.
Does this method work if the blank cells contain formulas that return an empty string?
The standard '(Blanks)' filter check-box might not recognize cells with formulas returning an empty string ("") as truly blank. In this case, you may need to filter using 'Text Filters' > 'Does Not Equal' and leave the criteria box empty, or copy and paste the column as values first to remove the formulas.
How do I clear the filter after I am done copying?
To restore your hidden rows, go back to the 'Data' tab and click the 'Filter' button again to toggle it off completely. Alternatively, click the specific column's filter icon and select 'Clear Filter'.




