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.

Excel shortcut Alt plus semicolon to copy visible cells only, pasting the region totals and skipping the hidden month rows, with 5 rows pasted.
Alt+; then Ctrl+C: only what you see.

Quick answer

  1. Select the range, including the hidden rows or columns.
  2. Press Alt+; (Alt and semicolon) on Windows. On a Mac press Cmd+Shift+Z, or use Edit > Find > Go To > Special > Visible cells only.
  3. Press Ctrl+C. The marching ants show several separate blocks.
  4. Click the destination and paste (Ctrl+V, or Ctrl+Shift+V for values in Microsoft 365).
Free download: Get the practice workbook (.xlsx): a Q1 sales report with collapsed month rows and an account list with hidden rows, each with a check cell that says Done when the exercise is right. No macros.
CommandWindowsMac
Select visible cells onlyAlt+;Cmd+Shift+Z (or Edit > Find > Go To > Special)
Ribbon routeHome > Find & Select > Go To Special > Visible cells onlyEdit > Find > Go To > Special
Fill the selectionCtrl+EnterCtrl+Return
Paste valuesCtrl+Shift+V (Microsoft 365) or Ctrl+Alt+V, VCtrl+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.

Excel Q1 sales report with the month rows collapsed, showing only North, East, South and West totals and a grand total of 43,352.12; the row numbers jump from 4 to 8, 12, 16, 20 and 21.
Row numbers jump where rows are hidden.

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.

Excel sheet after a normal copy and paste with 17 rows pasted, including the hidden January, February and March rows, and the check Hidden rows pasted too.
17 rows instead of 5.

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.

Excel selection after pressing Alt plus semicolon, split into separate blocks for the header, the 4 region totals and the grand total.
The selection splits into blocks.
Keyboard tip: Alt+; is Alt and the semicolon key, pressed together. On keyboards where the semicolon needs Shift, use the ribbon route or add Select Visible Cells to the Quick Access Toolbar.

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.

Excel sheet after pasting visible cells only, with the 4 region totals and the grand total of 43,352.12 in 5 rows and the check Done.
5 rows, grand total 43,352.12.

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.

Excel account list with closed accounts hidden, where Alt plus semicolon and Ctrl plus Enter filled Reviewed into the 11 visible open accounts.
Ctrl+Enter after Alt+;.

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.

Excel account list with all rows shown, the 5 closed accounts still blank in the Review column and the check Done.
Hidden rows untouched.
Try it: On 1 Copy totals, paste a normal copy of Sales!A4:D21 without Alt+;. 17 rows arrive and the check says Hidden rows pasted too. Undo, press Alt+; before Ctrl+C and paste values: 5 rows, grand total 43,352.12, Done.

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.

Pasting into a filtered list: Excel can copy from visible cells only, but it cannot paste into visible cells only. Pasting a block over a filtered or partly hidden range also fills the hidden rows. To update only the visible rows, use Alt+; with Ctrl+Enter for a single value, or a formula in a helper column.

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.
Practice file: Download the practice workbook and do both exercises until the checks say Done.

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.