SHORTCUTS & FASTER WORKFLOWS
Copy Visible Cells Only in Excel (Alt+; Shortcut)
You collapse a report to its totals, copy it, paste it into an email or another sheet, and all the hidden detail rows come back. Excel copies everything inside a selection, visible or not. One shortcut fixes it: Alt+; selects only the visible cells, so copy, fill, format and delete skip whatever is hidden. This guide shows when you need it, when you do not (filtered lists), and two practice exercises with check cells.

Quick answer
- Select the range, including the hidden rows or columns.
- Press Alt+; (Alt and semicolon) on Windows. On a Mac press Cmd+Shift+Z, or use Edit > Find > Go To > Special > Visible cells only.
- Press Ctrl+C. The marching ants show several separate blocks.
- Click the destination and paste (Ctrl+V, or Ctrl+Shift+V for values in Microsoft 365).
| Command | Windows | Mac |
|---|---|---|
| Select visible cells only | Alt+; | Cmd+Shift+Z (or Edit > Find > Go To > Special) |
| Ribbon route | Home > Find & Select > Go To Special > Visible cells only | Edit > Find > Go To > Special |
| Fill the selection | Ctrl+Enter | Ctrl+Return |
| Paste values | Ctrl+Shift+V (Microsoft 365) or Ctrl+Alt+V, V | Ctrl+Cmd+V, then Values |
Step 1: Spot the hidden rows
The practice report lists Q1 sales by region with one row per month and a total for each region. The month rows are grouped and collapsed, so only the 4 region totals and the grand total of 43,352.12 show. The clue is in the row numbers: they jump from 4 to 8, 12, 16 and 20. Rows can be hidden three ways: with Hide (right-click a row > Hide), by collapsing a group or outline, or by a filter. Alt+; matters for the first two.

Step 2: See what a normal copy does
Select A4:D21, press Ctrl+C and paste on the 1 Copy totals sheet. Excel pastes 17 rows: the header, the 12 hidden month rows and the totals. The check cell says Hidden rows pasted too. This surprises many people because the copied range looked like 6 rows. Undo the paste (Ctrl+Z) before the next step.

Step 3: Press Alt+; before you copy
Select A4:D21 again and press Alt+;. The selection now skips the hidden rows: you see separate highlighted blocks for the header, each total and the grand total. Press Ctrl+C. The same command is on the ribbon under Home > Find & Select > Go To Special > Visible cells only, which is also covered in the Go To Special guide.

Step 4: Paste only the visible rows
Click A4 on 1 Copy totals and paste values with Ctrl+Shift+V (Microsoft 365) or Ctrl+Alt+V, V, Enter. The 5 visible rows arrive in one block with no gaps: North, East, South and West totals and the grand total of 43,352.12. The check says Done. Paste values rather than a normal paste here, because the totals are SUM formulas that would point at the wrong cells on the new sheet; see Paste Special shortcuts for the other paste options.

Step 5: Fill only the visible rows
Alt+; works for more than copying. On 2 Mark visible the closed accounts are hidden. Select D5:D20, press Alt+; type Reviewed and press Ctrl+Enter: only the 11 visible open accounts are filled. Without Alt+; Ctrl+Enter fills every selected cell, hidden ones included (more on Ctrl+Enter in fill selected cells with Ctrl+Enter). The same applies to Delete, formatting and number formats: select visible cells first.

Step 6: Unhide and check
Select rows 4 to 21, right-click and choose Unhide. The 5 closed accounts are still blank and the check says Done: 11 of 11 open accounts reviewed, no hidden row touched.

When you do not need Alt+;
Rows hidden by a filter are different. When you copy a filtered range, Excel already copies only the visible rows, so a normal Ctrl+C is enough (see turn filters on and off with Ctrl+Shift+L). Alt+; is needed for rows or columns hidden with Hide or a collapsed group, which is what reports with subtotals and outlines usually use.
Common mistakes
- Pressing Alt+; before selecting the range: it only works on the current selection.
- Using a normal paste for formulas copied from subtotal rows, so they point at the wrong cells. Paste values.
- Expecting Alt+; in Excel for the web: there is no visible-cells-only command there, except for filtered Tables.
- Forgetting that hidden columns count too: Alt+; skips hidden columns as well as rows.
- Selecting with Ctrl+A on a huge sheet: select only the block you need (see Ctrl+arrow navigation).
Frequently asked questions
What is the shortcut to select visible cells only in Excel?
Alt+; on Windows. On a Mac it is Cmd+Shift+Z in many versions; if it does nothing on yours, use Edit > Find > Go To > Special > Visible cells only, or add the command to the toolbar.
Why does Excel copy hidden rows?
By default a selection includes every cell in the range, hidden or not. Rows hidden by a filter are the exception: Excel skips them when you copy.
How do I copy only the subtotals in Excel?
Collapse the outline to level 2 (the 2 button on the left), select the range, press Alt+; and copy. Paste values on the other sheet.
Does Alt+; work with hidden columns?
Yes. It skips hidden rows and hidden columns, so you can hide the columns you do not want to share and copy the rest.
Can I paste into visible cells only?
Not with a normal paste. Use Alt+; and Ctrl+Enter for one value, or a helper formula, then copy and paste values.
Building a summary from detail rows? A PivotTable can group and total without hiding rows; see group dates by month in a PivotTable or the sales report dashboard.
Final checklist
- Range selected, including the hidden rows.
- Alt+; pressed (separate blocks visible).
- Ctrl+C, then paste values at the destination.
- Ctrl+Enter only after Alt+; when filling.
- Unhide once to confirm the hidden rows were not changed.
Work faster in every report
Find more ready-to-use Excel templates, learn the shortcuts in the OneXcel Tutorial Hub, or turn your totals into a report with the OneXcel Dashboard Builder.