To select only the visible cells in Excel, the fastest method is to use the keyboard shortcut Alt + ; (semicolon). Alternatively, you can use the Go To Special menu: select your range, press F5 or Ctrl + G, click Special..., select Visible cells only, and click OK. This process ensures that when you copy and paste a filtered or hidden range, you only move the data you can actually see, preventing hidden rows or columns from being included in your destination sheet.
What You'll Need
- A computer with Microsoft Excel installed (Windows or macOS).
- A dataset that contains filtered rows, manually hidden rows, or hidden columns.
- A basic understanding of how to highlight a range of cells.
Step-by-Step
- Prepare Your Data: Start by applying a filter to your data or manually hiding the rows and columns you do not want to include. For example, if you have a sales report and only want the "Completed" orders, use the Filter tool (Data > Filter) to hide all other statuses.
- Highlight the Range: Click and drag your mouse to select the entire area containing the data you wish to copy. Ensure you include both the visible data and the hidden areas between them; if you only select one visible cell, the tool will only act on that single cell.
- Open the Go To Dialog: Press the F5 key on your keyboard. If your keyboard requires a function lock, press Fn + F5. Alternatively, you can press Ctrl + G. Both actions open the "Go To" dialog box.
- Access Special Settings: In the bottom-left corner of the Go To dialog box, click the button labeled Special.... This opens a secondary menu that allows you to select cells based on specific criteria rather than cell addresses.
- Choose Visible Cells Only: In the Go To Special window, look for the radio button labeled Visible cells only. Select this option. This tells Excel to ignore any rows or columns that are currently collapsed or filtered out of view.
- Confirm the Selection: Click OK. You will notice a slight change in the appearance of your selection; usually, thin white lines appear between the visible blocks of data, indicating that the hidden cells are no longer part of the active selection.
- Perform Your Action: Now that only the visible cells are selected, you can press Ctrl + C to copy the data. When you paste this data into a new location, Excel will only paste the visible values, leaving the hidden data behind in the original source.
Common Mistakes
One of the most frequent errors users make is forgetting to perform the "Select Visible Cells" step entirely. By default, if you highlight a range that contains hidden rows and press copy, Excel often copies everything—including the hidden data. When you paste this into a new sheet, the hidden rows suddenly reappear, cluttering your report and potentially exposing sensitive information that was meant to be hidden.
Another common mistake is selecting only a small portion of the visible data. For the "Visible cells only" command to be effective across a large dataset, you must first select the entire block of data, including the areas where the hidden rows reside. If you try to select visible cells one by one while holding the Ctrl key, the process becomes tedious and prone to error.
Users also occasionally confuse "Visible cells only" with "Blanks." In the Go To Special menu, selecting "Blanks" will highlight every empty cell in your range, regardless of whether the row is hidden or visible. Ensure you have specifically checked the "Visible cells only" radio button to avoid selecting empty cells across your entire worksheet.
Tips
For power users, the keyboard shortcut Alt + ; is the most efficient way to handle this task. Instead of navigating through the Go To Special menus, simply highlight your range and press these two keys simultaneously. This immediately toggles the selection to visible cells only, saving several clicks and seconds of time per operation.
If you find yourself using this feature daily, you can add the "Select Visible Cells" command to your Quick Access Toolbar (QAT). To do this, right-click the ribbon, select "Customize Quick Access Toolbar," choose "All Commands" from the dropdown menu, find "Select Visible Cells," and click "Add." This places a dedicated icon at the very top of your Excel window for one-click access.
When pasting visible cells into another workbook, always use Paste Values (Right-click > Paste Special > Values) if the original data contained complex formulas. This prevents "#REF!" errors that occur when a formula tries to reference a cell that was hidden or excluded during the copy process.
Troubleshooting
If the "Visible cells only" option is greyed out or not working, first check if your worksheet is protected. If the sheet is locked (Review > Protect Sheet), certain selection tools are disabled to prevent users from altering the structure of the data. Unprotect the sheet and try again.
If you have used the tool but the hidden rows are still appearing when you paste, it is likely because you did not see the selection change. Look closely at the selection borders. If the selection looks like one solid blue block, you have selected everything. If there are thin white gaps between the rows, the tool worked. If it still fails, try clearing your clipboard (copy something else, then copy the visible cells again) to ensure no cached data is interfering.
In some versions of Excel, particularly on macOS, the Alt + ; shortcut may not function due to system-level keyboard overrides. If the shortcut fails, rely on the F5 > Special method, as this is the universal path that works across all desktop versions of the software.
Frequently Asked Questions
Does this work for hidden columns as well as rows?
Yes. The "Visible cells only" command applies to both dimensions. If you have hidden columns B and D but want to copy columns A, C, and E, this tool will exclude the hidden columns from your selection.
Can I use this tool to delete only visible cells?
Yes. Once you have selected visible cells only, you can right-click and select "Delete Row." Excel will only delete the rows that are currently visible, leaving the hidden data intact.
Is there a difference between filtered cells and hidden cells?
For the purpose of this tool, no. Whether a row is hidden because of a Filter or because you right-clicked and chose "Hide," the "Visible cells only" command treats both as non-visible and excludes them.
Why can't I select visible cells in a Table (Ctrl+T)?
You can, but Tables behave slightly differently. If you select a filtered Table, Excel often defaults to selecting only visible cells automatically when copying. However, using the Go To Special tool is still the safest way to guarantee that hidden data is not included.
Does this work in Excel Online (Web version)?
The web version of Excel has limited "Go To Special" functionality compared to the desktop application. If the option is missing in the web app, you may need to open the file in the desktop app using the "Open in Desktop App" button to perform this specific action.