Yes, you can select only the cells that are currently visible in your Excel spreadsheet. This is essential when you are working with filtered data or hidden rows and columns; it ensures you only edit, copy, or delete the data you can actually see, leaving the hidden rows and columns untouched. While there is no single "Select Visible Cells Only" button on the ribbon, you can achieve this quickly using a specific keyboard shortcut or a hidden menu option.
What You'll Need
- A computer with Microsoft Excel installed (Windows or macOS versions work with these steps).
- A spreadsheet containing data with at least one hidden row, hidden column, or an active filter.
Step-by-Step
- Select your range. Click and drag your mouse to highlight the cells you want to select. This can be a single cell, a range of adjacent cells, or multiple non-adjacent ranges (Ctrl+Click to add more). This selection is the starting point.
- Open the Go To dialog. Press the keyboard shortcut Alt + S on a Windows computer. This opens the "Go To" dialog box. On a Mac, you can press Cmd + G to open the Go To dialog, but the shortcut below is the primary method for this specific task.
- Launch the Special dialog. Within the Go To dialog, you will see a button labeled "Special..." (or sometimes just "Special", depending on your Excel version). Click this button to open the "Go To Special" dialog.
- Choose Visible Cells Only. In the Go To Special dialog, locate the radio button labeled Visible cells only. Click on it to select this option.
- Execute the selection. Click the OK button at the bottom of the dialog. Excel will now instantly select only the cells that are currently visible based on your original selection and any filters or hidden rows/columns in place.
Common Mistakes
One of the most common mistakes users make is attempting to select visible cells by simply clicking and dragging the mouse. If you have hidden rows or columns in the middle of your selection range, dragging the mouse will typically select the hidden data as well. This defeats the purpose of the operation. The method outlined above, using the Go To Special dialog, is the only reliable way to bypass hidden data.
Another mistake is not selecting a range first. If you simply click on a single cell and perform the steps, Excel will try to select all visible cells in the workbook. This is rarely what you want and can be confusing. Always select the specific range you intend to work with before opening the Go To Special dialog.
Tips
The Alt + S shortcut is the fastest way to access this feature after you have selected a range. If you find yourself doing this often, you can create a custom macro that automates this process, but the built-in shortcut is efficient enough for most daily tasks.
When you have a very large dataset with many filters applied, selecting visible cells is a powerful way to clean up or format your data. For example, you might want to change the font color of all visible cells to make them stand out against filtered results, or you might want to delete only the visible rows while keeping the hidden ones for future reference. This method is the key to that capability.
Troubleshooting
What if the "Special..." button is missing or grayed out? This issue usually occurs if you haven't selected a range of cells first. The Go To Special dialog requires a starting point. Click on a cell or drag over a range of cells before pressing Alt + S.
Why isn't the selection changing after I click OK? If your selection already consists entirely of visible cells, the operation will appear to do nothing. There is no error message in this case; it simply confirms that your original selection was already limited to visible cells. Try filtering a column to hide some rows, re-select your range, and then try the steps again to see the effect.
Does this work on Mac? Yes, the method works on both Windows and macOS. The primary difference is the shortcut to open the Go To dialog: Windows uses Alt + S, while Mac uses Cmd + G. The rest of the steps remain exactly the same.
Frequently Asked Questions
Can I use this to delete only visible rows?
Yes. After selecting the visible cells you want to delete, simply press the Delete key. This will remove the data in those cells. However, if you want to delete entire rows that contain visible data, you must first select the visible cells, then right-click on the selection and choose "Delete". In the Delete dialog, choose "Entire row" to remove only the rows that contain your selected visible cells.
What if I have a very wide spreadsheet with many hidden columns?
The same method works for columns as it does for rows. Select the range of cells that spans the columns you want to work with, then follow the steps to select visible cells only. This will exclude any cells in hidden columns from the selection.
Does this work with Excel Online?
No, the Go To Special dialog is not available in the web-based version of Excel. In Excel Online, you cannot select only visible cells using a built-in feature. Your only option is to hide the rows or columns you don't want to work with, or to copy and paste the data into a new sheet where the formatting is applied to all cells.
Is there a way to copy only visible cells without opening the dialog?
There is no direct keyboard shortcut to copy visible cells only. You must first select the visible cells (using the method described above), and then press Ctrl + C (or Cmd + C on Mac) to copy them. You can then paste them into your destination location.
What does "Go To Special" actually do?
"Go To Special" is a powerful Excel feature that allows you to select cells based on specific criteria, such as formulas, constants, blanks, comments, and their relationships. In this context, we are using it to select cells based on their visibility status, which is a subset of the available options in this dialog.