To select only visible cells in Excel, first highlight the range you want, then press Alt+; (Windows) or Command+Shift+Z (Mac). This selects just the cells currently shown, skipping any hidden by filters, grouping, or manual hiding. If you need to copy the result, use the same shortcut before copying. The steps below cover the exact keystrokes, the Go To Special menu route, and how to avoid the most common copy-paste errors.

What You'll Need

  • Excel for Windows or Mac (desktop version; the web version has limited support for this shortcut)
  • A worksheet with at least one hidden row or column, or a filtered range
  • Basic familiarity with selecting cells and using the ribbon

Step-by-Step

  1. Select the range you want to work with. Click the first cell, then hold Shift and click the last cell, or drag across the range. If you want the entire used range, press Ctrl+A (Windows) or Command+A (Mac) once; pressing it twice selects the whole sheet, which is rarely what you want.
  2. Apply the visible-only selection shortcut. On Windows, press Alt+; (Alt and the semicolon key). On Mac, press Command+Shift+Z. The hidden rows and columns will be excluded from the selection; you will see the selection border skip over them.
  3. Verify the selection before you act. Look at the Name Box (left of the formula bar). It will show a range like B2:B10 but the hidden cells are not included in the active selection. You can also check the status bar at the bottom; it shows the count of selected cells, which should match the number of visible cells, not the total in the range.
  4. Copy the visible cells. Press Ctrl+C (Windows) or Command+C (Mac). Excel copies only the selected visible cells. If you paste into a new location, the hidden rows will not appear.
  5. Paste or edit as needed. Move to the destination cell and press Ctrl+V (Windows) or Command+V (Mac). If you are editing instead of copying, you can now type or apply formatting; only the visible cells will be affected.
  6. Alternative menu route (Windows). If you prefer the ribbon: select your range, then on the Home tab click Find & Select (usually far right), choose Go To Special…, select Visible cells only, and click OK. On Mac, the Go To Special dialog is under Edit > Go To > Special… (labels can differ slightly by version).
  7. Clear the selection when done. Click any single cell to deselect. The hidden rows remain hidden; this shortcut does not unhide anything.

Common Mistakes

  • Using the shortcut after copying. The order matters: select the range, press Alt+; (or Command+Shift+Z), then copy. If you copy first, Excel may include hidden cells.
  • Confusing hidden rows with filtered rows. The shortcut works for both, but if you have both filters and manually hidden rows, the selection excludes all of them. That is usually correct, but double-check the status bar count.
  • Pressing Alt+; on a laptop without a semicolon key. On some keyboards the semicolon is on a secondary layer; use the Go To Special menu instead.
  • Expecting the shortcut to work in Excel for the web. The web version has limited support; use the desktop app for reliable results.
  • Forgetting that pasting into a filtered sheet can misalign rows. If you paste visible cells into another filtered range, Excel may place data into hidden rows. Paste into an unfiltered area or use Paste Special values.

Tips

  • Use the Name Box to quickly select a large range: type A1:D100 and press Enter, then apply the shortcut.
  • To select only visible cells in a filtered column, click the filter arrow and use Select All after clearing filters? No—simply apply the shortcut to the filtered range; it respects the current filter.
  • If you need to delete visible rows only, select the visible cells, then right-click and choose Delete Row. Excel deletes only the visible rows; hidden rows remain.
  • For Mac users, the shortcut Command+Shift+Z is also the redo shortcut in some apps; in Excel it is specifically for visible cells. If it does not work, check that you are in the worksheet, not editing a cell.
  • Combine with Ctrl+Shift+L (Windows) or Command+Shift+L (Mac) to toggle filters quickly before selecting visible cells.

Troubleshooting

  • The shortcut does nothing. Make sure you are not in cell edit mode (press Esc first). Also confirm you have a multi-cell range selected; the shortcut has no effect on a single cell.
  • Hidden cells still get copied. Check that you pressed the shortcut after selecting the range, not before. On Windows, try the Go To Special menu route to confirm the selection.
  • The status bar count looks wrong. The status bar may show the count of all selected cells including hidden ones if the shortcut was not applied. Reapply Alt+; and watch the count change.
  • Mac shortcut not working. Some Mac keyboards map Command+Shift+Z to redo; if Excel does not respond, use Edit > Go To > Special > Visible cells only.
  • Paste results are misaligned. If you paste into a filtered range, Excel may place data into hidden rows. Paste into an unfiltered area first, or use Paste Special > Values into a clean sheet.
  • Shortcut works but formatting is lost. Copying visible cells copies values and formatting; if you only want values, use Paste Special > Values after copying.

Frequently Asked Questions

Does Alt+; work in Excel for Mac?

No, the Mac shortcut is Command+Shift+Z. The Alt+; combination is for Windows.

Can I select visible cells in Excel for the web?

The web version has limited support for this feature. For reliable results, use the desktop app.

What happens if I use the shortcut on a range with no hidden cells?

Excel selects the entire range as normal; there is no error, but the selection is the same as without the shortcut.

Does the shortcut work with filtered data?

Yes, it excludes rows hidden by filters, as well as manually hidden rows and columns.

Can I use this to delete only visible rows?

Yes. Select the visible cells, then right-click and choose Delete Row. Only the visible rows are removed; hidden rows stay.

Why does the Name Box still show the full range?

The Name Box shows the original range address, but the active selection excludes hidden cells. Check the status bar count to confirm.