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.
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. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. For “copy filtered data in excel”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected filter change, and only then apply the same setup to the full sheet. 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. That is what makes a data step that keeps your analysis trustworthy useful in real work: repeatable, auditable, and not dependent on memory or luck.
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. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.
In Google Sheets
Google Sheets handles this almost identically to Excel. The formula syntax above is the same, and the menu lives under a slightly different label rather than a ribbon tab. Use the platform toggle at the top of the page to switch every keyboard shortcut between Windows and Mac, and expect at most cosmetic differences in naming. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top, the tool proves it, and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. If you take one thing from this page on “copy filtered data in excel”, make it the habit rather than the keystrokes: set the problem up with labelled inputs, reference those cells, and let Excel do the recomputing. Bookmark the page for the syntax, but do the example once in a blank sheet and check it against the tool above — five minutes of hands-on practice fixes the method in memory far better than re-reading, and it surfaces the small snags while they are still harmless. After that the technique is genuinely yours: faster than searching for it again, and reliable enough to drop into work that other people depend on.
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.