How can I stop Excel (2007) from copying hidden cells?

4

2

Let's say I have some rows or columns that are hidden, and drag a selection across where those hidden values would normally be. Is there a way to prevent Microsoft Excel from copying those hidden cells?

I've found a workaround that sometimes works by pasting it all into Notepad, and then copying that, then pasting it into the spreadsheet I want to paste those values into, but it seems there should be a better way to do that. Unfortunately this workaround doesn't always work so well.

supercheetah

Posted 2013-06-13T04:30:53.587

Reputation: 836

Answers

4

From Copy visible cells only:

If some cells, rows, or columns on your worksheet are not displayed, you have the option of copying all cells or only the visible cells. By default, Excel copies hidden or filtered cells in addition to visible cells. If this is not what you want, follow the steps in this article to copy visible cells only. For example, you can choose to copy only the displayed summary data on an outlined worksheet.

  • Select the cells that you want to copy.
  • On the Home tab, in the Editing group, click Find & Select, and then click Go To.
  • In the Go To dialog box, click Special.
  • Under Select, click Visible cells only, and then click OK.
  • On the Home tab, in the Clipboard group, click Copy.
  • Select the upper-left cell of the paste area.

    Tip: To move or copy a selection to a different worksheet or workbook, click another worksheet tab or switch to another workbook, and then select the upper-left cell of the paste area.

  • On the Home tab, in the Clipboard group, click Paste.

Notes

Excel pastes the copied data into consecutive rows or columns. If the paste area contains hidden rows or columns, you might need to unhide the paste area to see all of the copied cells.
If you click the arrow below Paste, you can choose from several paste options to apply to your selection.

Anurag Shetti

Posted 2013-06-13T04:30:53.587

Reputation: 159

6

I recently learned this nice shortcut from another SU user.

Select all cells as you usually do and then press

  1. Alt+; » Select only visible cells within your (or Alt+Shift+, depending on keyboard layout)
  2. Ctrl+C » Copy
  3. Ctrl+V » Paste

nixda

Posted 2013-06-13T04:30:53.587

Reputation: 23 233

I believe that Select Visible Cells is (Alt)+;. – G-Man Says 'Reinstate Monica' – 2015-08-24T17:02:45.820

@G-Man So your keyboard has a ; key? I always have to press Shift+, :) – nixda – 2015-08-24T17:19:28.490

Yes. – G-Man Says 'Reinstate Monica' – 2015-08-24T17:31:47.867

@G-Man Ok, then let's add the US version – nixda – 2015-08-24T17:36:35.547

0

I tried a workaround. All rows are copied only when 1 option is selected in filter. Try using 2 values in filter (ie two values in the same column). To overcome the issue of unwanted data, I inserted a dummy row (and select my data and the dummy data). And after copying that i just remove the dummy data. Please reply for any clarification.

Voodooblaster

Posted 2013-06-13T04:30:53.587

Reputation: 1

1You’re answering the wrong question. This question isn’t about filtered data, it’s about hidden rows. – Scott – 2017-10-18T02:54:52.843

0

Okay, here is what I found. When using autofilters, only the filtered results get COPIED, but if you CUT the selection, both visible and unvisible cells are moved.

robotik

Posted 2013-06-13T04:30:53.587

Reputation: 131

-2

Same problem, can't do with excel on Macbook. Solved simple by copy to another program (ect. Autocad) then copy from Cad to Excel.

Akino

Posted 2013-06-13T04:30:53.587

Reputation: 1

The OP says he has tried that and does not want this workaround. – None – 2017-04-03T07:16:58.323