logo
search
Formatting Issues

How to Copy Only Visible Cells and Unhide Rows in Excel

Steve KSteve K Oct 15, 2026 869 views

Question details

The user wants to know how to prevent hidden or filtered rows from being copied, or how to properly unhide them after copying and pasting data in an Excel worksheet.

How to Copy Only Visible Cells and Unhide Rows in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Copying a range of data that includes hidden or filtered rows and pasting it into a new destination.
Observed behavior
Excel copies and pastes both the visible and the hidden/filtered cells by default, causing unwanted hidden data to appear in the destination area.
Before you start

Before copying your data, verify whether the rows in your source range are hidden manually or minimized through an active filter, as this helps you confirm exactly which data you wish to exclude.

Solution 1Recommended

Use the "Select Visible Cells Only" Command Before Copying

The most effective way to avoid pasting hidden rows is to force Excel to select only the data that is currently visible on your screen.

By default, standard copy operations grab everything in the highlighted range, including rows you cannot see. By using the 'Go To Special' menu, you can isolate the visible cells and leave the hidden ones behind.

1
Select your data range

Click and drag your mouse to highlight the entire area of data you want to copy, encompassing both the visible and hidden rows.

2
Open the Go To Special dialog

Navigate to the 'Home' tab, click on 'Find & Select' in the Editing group, and choose 'Go To Special...'. Alternatively, press F5 on your keyboard and click the 'Special...' button.

3
Choose visible cells only

In the Go To Special dialog box, select the radio button for 'Visible cells only' and click 'OK'. You will notice a subtle border shift highlighting only the non-hidden rows.

4
Copy and Paste

Press Ctrl + C to copy the visible cells. A moving dashed border will appear around the visible sections. Navigate to your destination cell and press Ctrl + V to paste.

Use the "Select Visible Cells Only" Command Before Copying
Keyboard Shortcut Tip: You can bypass the 'Go To Special' menu entirely by selecting your data and pressing Alt + ; (semicolon) on Windows to instantly select visible cells only.
Efficient Data Management

Copy Visible Cells Easily with WPS Spreadsheet

WPS Spreadsheet offers an intuitive interface to manage hidden rows, apply filters, and copy only visible cells with a simple shortcut. It handles complex data seamlessly, making your daily spreadsheet tasks fast and error-free.

  1. 1. Highlight the data: Open your workbook in WPS Spreadsheet and select the range containing the visible data and hidden rows.
  2. 2. Select visible cells only: Press Alt + ; (semicolon) to automatically exclude the hidden rows from your selection.
  3. 3. Copy the data: Press Ctrl + C to copy the selected visible cells to your clipboard.
  4. 4. Paste to destination: Click on the destination cell where you want the data to appear and press Ctrl + V.
100% compatible with Microsoft Excel (.xlsx, .xls) files.Lightweight, fast, and completely free to use.Built-in shortcuts to quickly isolate and copy only visible cells.Familiar user interface requiring zero learning curve.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel copy hidden rows by default?

By default, Excel treats a selected range as a continuous block of data. It copies everything within the starting and ending boundaries of your selection, including rows or columns that have been manually hidden or filtered out.

What is the shortcut to select visible cells only in Excel?

After highlighting your data range, press Alt + ; (semicolon) on Windows, or Cmd + Shift + Z on Mac. This instantly selects only the visible cells, ignoring any hidden rows or columns.

How do I know if I have successfully selected only the visible cells?

Once you apply the 'Visible cells only' command, you will see a moving dashed border (sometimes called a 'marquee') wrapping around the distinct visible sections individually, rather than one large rectangle around the entire range.

Can I copy visible cells across multiple worksheets at once?

No, you must select and copy visible cells from one sheet at a time. Selecting visible cells across grouped sheets is not supported for standard copy-and-paste operations.