In Excel: select the range and press Alt+; (Home ▸ Find & Select ▸ Go To Special ▸ Visible cells only), then copy — the hidden rows are left behind.
On this page7
Filter, hide or group the rows so only what you want is on screen.
Select the range you intend to copy, headers included if you want them.
Press Alt+; — or Home ▸ Find & Select ▸ Go To Special ▸ Visible cells only.
Check the selection border has become segmented; that is the confirmation.
Press Ctrl+C and paste where you need it.
To delete only the visible rows, use the same Alt+; step first, then right-click ▸ Delete Row.
What this does
A plain Ctrl+C over a filtered or grouped range copies everything, including the rows Excel is not showing you, and pasting it elsewhere brings the hidden rows back. Alt+; restricts the selection to visible cells only before you copy; the marching-ants border becomes segmented, which is the visual confirmation that it worked. This applies equally to filtered rows, manually hidden rows and columns, and collapsed outline groups. Deleting works the same way: select, Alt+;, then delete — otherwise you remove rows you cannot see. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “excel copy visible cells”. Start on a copy or a tiny sample, keep the affected cells visible, and compare the result with the tool above before you touch the real workbook. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. The point is a layout choice that keeps the sheet readable and sortable, but the practical win is that someone else can open the file and understand what happened without asking you.
A worked example
A 5,000-row table filtered to the 120 rows for "North". Select the filtered range, press Alt+; — the selection border breaks into segments — then Ctrl+C and paste onto a new sheet. You get 120 rows. Without Alt+;, the same paste produces all 5,000. The ribbon route is Home ▸ Editing ▸ Find & Select ▸ Go To Special ▸ Visible cells only; on Mac the shortcut is ⌘+Shift+Z or the same Go To Special dialog. Filtering to find something and then copying it out is one of the most common things anyone does in Excel, and without this one shortcut the result quietly contains every row you filtered away. If this is something you do often, add the command to the Quick Access Toolbar (right-click it on the ribbon and choose Add to Quick Access Toolbar) or learn its shortcut, so next time it is one click instead of a hunt through the menus.
In Google Sheets
This is a command rather than a formula, so there is no syntax to carry over. Google Sheets arranges its commands in menus across the top instead of a ribbon, names some of them differently and does not have every Excel command — look for the equivalent in the Sheets menus or its help before assuming the steps match. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. Here is the takeaway for “excel copy visible cells”: follow the steps at the top, check the result on the sheet itself, and keep undo in mind while you experiment. Done once deliberately, it becomes something you do from memory in Excel rather than something you search for again.
Common mistakes
- Copying a filtered range without Alt+; and pasting the hidden rows along with it.
- Deleting filtered rows without Alt+;, which removes hidden rows too — and that is not always undoable once saved.
- Assuming the paste failed because the row numbers are no longer consecutive; the segmented border tells you it worked.
- Expecting Alt+; to help with an autofilter that is hiding rows you actually wanted, rather than checking the filter first.
Frequently asked questions
How do I copy only visible cells in Excel?
Select the range, press Alt+; to restrict the selection to visible cells, then Ctrl+C. The hidden or filtered-out rows are excluded.
What is the shortcut on Mac?
⌘+Shift+Z, or use Edit ▸ Find ▸ Go To ▸ Special ▸ Visible cells only, which works on every version.
How do I delete only the filtered rows?
Select the range, press Alt+; first, then right-click ▸ Delete Row. Without that step you delete the hidden rows as well.
How do I know it worked?
The selection outline changes from a solid block to segmented sections, one per visible group of rows.