Select Visible Cells

When rows are hidden, a normal copy also copies the hidden rows, and pasting can overwrite them. Press Alt + ; to select only the visible cells first, then copy or paste.

ShortcutAlt + ; (Windows), Cmd + Shift + Z (Mac)
MenuGo To Special → Visible cells only
Filtered rowsAlready skipped automatically

The problem

Copying a range with manually hidden rows copies the hidden rows too.

Copying a range copies the hidden rows as well

Method 1: Alt + ;

Select the range, press Alt + ;, then Ctrl + C. The selection shows small gaps where the hidden rows are skipped.

Alt+semicolon selecting only the visible cells

Method 2: Go To Special

Press F5 or Ctrl + G → Special → Visible cells only → OK.

Go To Special with Visible cells only

Method 3: Quick Access Toolbar button

Customize Quick Access Toolbar → More Commands → All Commands → Select Visible Cells → Add.

Adding Select Visible Cells to the Quick Access Toolbar
Using the Select Visible Cells button

Paste into visible cells only

Filtered and manually hidden rows behave differently when you paste:

Rows hidden by Pasting a single value into the range
A filter Goes only into visible rows
Hide Rows Goes into hidden rows too
Pasted value going into hidden rows

To fill only the visible cells: copy the value, select the target range, press Alt + ;, then Ctrl + V.

Pasting into visible cells only

Pasting a block of different values into a filtered range doesn’t line up row by row. Sort the data instead of filtering, or use a helper column with a formula.

Formulas that ignore hidden rows

To total only what you can see, use =SUBTOTAL(109,C2:C100) or =AGGREGATE(9,5,C2:C100). Both skip hidden and filtered rows.

Related