To select all visible cells in Excel, first filter or hide the rows/columns you want to exclude, then press Alt + ; (Windows) or Cmd + Shift + Z (Mac). This selects only the cells currently visible on screen, skipping any hidden by filters or manual hiding. You can then copy, format, or delete just those cells without affecting hidden data. This guide covers the exact steps, common pitfalls, and troubleshooting for both Windows and Mac.

What You'll Need

  • Microsoft Excel (any modern version: 2016, 2019, 2021, or Microsoft 365) on Windows or Mac.
  • A worksheet with data that has hidden rows or columns (via filter or manual hide).
  • Basic familiarity with selecting ranges and using the ribbon or keyboard.

Step-by-Step

  1. Apply your filter or hide rows/columns. Use the Data tab > Filter to filter out rows you don't want, or select rows/columns, right-click, and choose Hide. The hidden cells will not be selected in the next steps.
  2. Select the range you want to work with. Click the first cell, then drag to the last cell, or press Ctrl + A (Windows) / Cmd + A (Mac) to select the entire worksheet. If you only want a specific block, highlight that block.
  3. Press Alt + ; (Windows) or Cmd + Shift + Z (Mac). This keyboard shortcut selects only the visible cells within your current selection. On Windows, the semicolon key is usually next to L; on Mac, the Z key is near the bottom left. The status bar will show “Visible cells selected” or similar.
  4. Verify the selection. Look at the row numbers or column letters: hidden rows/columns will not be highlighted. You can also check the Name Box (top left) — it may show “1R x 2C” or similar, indicating only visible cells are selected.
  5. Perform your action. Now you can copy (Ctrl + C / Cmd + C), format, or delete the selected cells. When you paste, only the visible cells will be pasted, and hidden data remains untouched.
  6. To select all visible cells in the entire worksheet, first click the Select All button (the triangle at the top-left corner of the sheet), then press Alt + ; (Windows) or Cmd + Shift + Z (Mac). This selects every visible cell in the used range.

Note: Menu labels and shortcut behavior can differ slightly by Excel version, device, or region. If the shortcut doesn't work, try the alternative via the ribbon: Home tab > Find & Select > Go To Special > Visible cells only. This works on both Windows and Mac.

Common Mistakes

  • Forgetting to filter or hide first. The shortcut only works if there are hidden cells; otherwise it selects everything.
  • Using the wrong shortcut on Mac. Many users try Alt + ; on Mac, but it's Cmd + Shift + Z. Also, some Mac keyboards map the Z key differently; if it fails, use the Go To Special method.
  • Selecting only part of the range. If you don't select the full range before pressing the shortcut, you'll only get visible cells within that partial selection.
  • Assuming hidden columns are included. The shortcut works for both hidden rows and columns, but if you manually hid columns, they are excluded — which is usually what you want.
  • Pasting into a filtered list without visible cells only. If you copy a range that includes hidden cells and paste it, Excel may paste into hidden rows too, causing misalignment. Always use the visible-cells selection before copying.

Tips

  • Use Ctrl + ; (Windows) or Cmd + ; (Mac) to insert the current date — not to be confused with the visible cells shortcut.
  • To quickly select all visible cells in a filtered list, click the filter arrow and choose “Select All” to clear filters, then reapply your filter, then use the shortcut.
  • You can add the “Select Visible Cells” button to the Quick Access Toolbar: File > Options > Quick Access Toolbar > All Commands > Select Visible Cells. This gives you a one-click button.
  • When copying visible cells, paste them into a new location to avoid overwriting hidden data. Use Paste Special > Values if you only want the data without formatting.
  • On Mac, if Cmd + Shift + Z doesn't work, try Cmd + Shift + Z with the Z key located near the bottom left; some keyboards require Fn. Alternatively, use the menu: Edit > Go To > Special > Visible cells only.

Troubleshooting

  • Shortcut does nothing: Ensure you have a range selected (not just a single cell) and that there are hidden rows/columns. If using a laptop, try Fn + Alt + ; or check if your keyboard has a different layout. On Mac, try Cmd + Shift + Z with the Z key near the bottom left; if that fails, use the Go To Special method.
  • Visible cells not selected correctly: Make sure you haven't accidentally selected non-contiguous ranges. Press Esc and reselect the range, then try again.
  • Paste includes hidden cells: After selecting visible cells, copy, then paste into a new sheet or area. If you paste into a filtered list, Excel may paste into hidden rows; instead, paste into an unfiltered area and then reapply filters.
  • Go To Special > Visible cells only is grayed out: This happens if no range is selected or if the worksheet is protected. Unprotect the sheet via Review > Unprotect Sheet (password may be required).
  • Mac users: Cmd + Shift + Z undoes instead of selecting visible cells: That shortcut is for Undo in some apps, but in Excel it's for visible cells. If it's not working, check Excel > Preferences > Keyboard and ensure shortcuts are enabled. As a fallback, use the ribbon method.

Frequently Asked Questions

Can I select all visible cells without a keyboard shortcut?

Yes. On the Home tab, click Find & Select > Go To Special > Visible cells only. This works on both Windows and Mac.

Does Alt + ; work in Excel for Mac?

No, the Mac shortcut is Cmd + Shift + Z. Alt + ; is for Windows only.

What if I have hidden rows but no filter?

The shortcut still works — it selects only cells in visible rows, skipping manually hidden rows as well.

Can I use this to delete only visible rows?

Yes. Select the visible cells, then right-click and choose Delete. Excel will delete only the visible rows, leaving hidden rows intact.

Why does my selection include hidden columns when I only hid rows?

The shortcut selects visible cells in both dimensions. If you hid rows but not columns, all columns are visible, so they are included. To exclude hidden columns, you must hide them as well.

Is there a way to select visible cells in a specific column only?

Yes. First select the column range (e.g., click the column header), then press Alt + ; (Windows) or Cmd + Shift + Z (Mac). Only visible cells in that column will be selected.