Select just one cell in the paste area of an area thats the same size and try pasting again

Select just one cell in the paste area of an area thats the same size and try pasting again

I have a 90,000 row (filtered) spreadsheet full of contacts. I am in the process of cleaning up those that have prefixes etc. So "Mrs Mary Jane" would be an issue and Ive been trying to copy the endless rows with "Mary Jane" etc to the left and pasting over the Mrs prefixes that are present. However the issue in the title keeps popping up ie "The information cannot be pasted because the Copy area and the Paste area are not the same size and shape". I have noticed that when I turn off the filter the issue goes away (But I need it to segment 90k from 450k as well as filtering for "Mr" "Ms" etc). Any help would be greatly appreciated.

Learn how to copy and paste excluding hidden columns or rows in Excel.

Ever tried to copy and paste data thinking you will be pasting, excluding the hidden columns or rows only to have the hidden data copied too?

Copying a data range that contains hidden data can be challenging when the hidden data travels with the copied range.

In this post I'll explain how to copy and paste the visible cells only – hidden cells are excluded.

This blog includes step-by-step help on the following:

  • Why does Copy and Paste include hidden data in Excel?
  • Copying and pasting visible cells only in Excel (excluding hidden cells)
  • Excel Shortcuts for Copying and Pasting visible cells only (excluding hidden cells)

Why does Copy and Paste include hidden data in Excel?

Let’s look at what happens when we try to copy and paste a range with hidden data. In the example below we have an Excel spreadsheet with information on sales.

Select just one cell in the paste area of an area thats the same size and try pasting again

In this example, we are wanting to hide rows 6-9 and copy and paste the information in this data set without these rows included.

To follow along, rows 6-9 have been highlighted in yellow so that they are easily identified as we continue through the steps.

Select just one cell in the paste area of an area thats the same size and try pasting again

To hide these rows, we will do the following.

Step 1: Select the rows we want hidden by clicking and dragging over the row numbers. In our example, this is rows 6-9.

Select just one cell in the paste area of an area thats the same size and try pasting again

Step 2: Right-click the selected rows and then select Hide from the menu.

Select just one cell in the paste area of an area thats the same size and try pasting again

The rows we have selected will now be hidden.

You can see in our example, rows 6-9 are hidden. We can easily identify this as the highlighted rows are now hidden and the row numbers jump from 5 to 10.

Select just one cell in the paste area of an area thats the same size and try pasting again

Copying data that has hidden rows

Now let’s try copying the first 3 columns of data in this table to another worksheet. We are assuming that the hidden data will not copy because it is hidden.

Step 1: We will select the data range that we want to copy, including the hidden rows. In this example, we want to copy the Invoice number, Date and Customer Name columns.

Select just one cell in the paste area of an area thats the same size and try pasting again

Step 2: To copy the range we’ve selected, we will right-click the selected range and select Copy from the shortcut menu (or press Ctrl + C).

Select just one cell in the paste area of an area thats the same size and try pasting again

Step 3: We will now go to where we want to paste the data and select the cell that will be the top, left cell of the pasted range. In our example, we created a new sheet and are now wanting to paste the copied data into cell A3. The name of our new sheet is Sheet1 as this was the default name given to the sheet by Excel.

Select just one cell in the paste area of an area thats the same size and try pasting again

Step 4: We will now paste the copied data by doing a right-click and selecting Paste from the shortcut menu (or we can press Ctrl + V).

Select just one cell in the paste area of an area thats the same size and try pasting again

Step 5: Unfortunately, we can see that the hidden data has been copied and included when we paste. This is easily identifiable as you can see the rows we highlighted in yellow, prior to doing the copy, have also copied over.

Select just one cell in the paste area of an area thats the same size and try pasting again

This is because when we selected the data to be copied in Step 1, we are actually selecting both visible AND hidden data.

Therefore, when we copied we are copied ALL the data, not just the visible cells.

Most of the time this is not ideal, and you don’t want these hidden rows to travel over with the data you are copying and pasting.

The following steps will teach you how to paste visible cells only in Excel, excluding any hidden rows or columns.

Copying and pasting visible cells only in Excel (excluding hidden cells)

Step 1: Start by selecting the area you want to copy. In our example we will select the Invoice, Date and Customer Name columns. The highlighted rows 6 to 9 are hidden.

Select just one cell in the paste area of an area thats the same size and try pasting again

Step 2: From the Home tab, select Find & Select.

Select just one cell in the paste area of an area thats the same size and try pasting again

Step 3: Select Go To Special.

Select just one cell in the paste area of an area thats the same size and try pasting again

The Go To Special dialogue box will appear.

Select just one cell in the paste area of an area thats the same size and try pasting again

Step 4: Select Visible cells only. This ensures only the visible cells are included in your selection. The hidden cells are excluded.

Select just one cell in the paste area of an area thats the same size and try pasting again

Step 5: Click OK.

Select just one cell in the paste area of an area thats the same size and try pasting again

You will now see that the visible cells have been selected and the hidden cells are excluded. A small line within the selected area shows this .

Select just one cell in the paste area of an area thats the same size and try pasting again

Step 6: Now Copy the selected cells by right-clicking over the selected area and selecting Copy from the shortcut menu (or press Ctrl + C).

Select just one cell in the paste area of an area thats the same size and try pasting again

Step 7: Go to where you want to paste the data and select the cell that will be the top, left cell of the pasted range. In our example, we created a new sheet called Sheet 1 as this is the default name given by Excel and we selected cell A3.

Select just one cell in the paste area of an area thats the same size and try pasting again

Step 8: Paste by doing a right-click and selecting Paste from the shortcut menu (or press Ctrl + V).

Select just one cell in the paste area of an area thats the same size and try pasting again

Super Tip: If you want to paste your cells with the exact same column widths as the sheet they were copied from, when you go to paste do a right-click and select Paste Special. From there, select Keep Source Column Widths (W).

Select just one cell in the paste area of an area thats the same size and try pasting again

Only the visible cells will be pasted.

In this example, we can easily tell that only the visible cells have been pasted as the hidden rows were highlighted in yellow and they have not appeared.

Select just one cell in the paste area of an area thats the same size and try pasting again

Excel Shortcuts for Copying and Pasting visible cells only (excluding hidden cells)

1. Select the range to be copied, including the hidden data.

2. Press ALT + ; (ALT + semicolon to select only visible data and exclude any hidden data)

3. Press Ctrl + C (to copy)

4. Go to where you want to paste the data and select the cell that will be the top, left cell of the pasted range.

5. Press Ctrl + V (to paste the data).

To Sum up

The trick is to ensure you are only selecting visible cells prior to doing your Copy.

Once you have this mastered you can easily control your data and copy visible cells only.

Was this blog helpful? We'd love to know. If you're a beginner or if you use Excel every day please let us know if we helped in some way by leaving a Comment below.

Instructions

Copying and pasting visible cells only in Excel (excluding hidden cells)

  1. Select the area you want to copy.
  2. From the Home tab, select Find & Select.
  3. Select Go To Special. The Go To Special dialogue box will appear.
  4. Select Visible cells only. This ensures only the visible cells are included in your selection. The hidden cells are excluded.
  5. Click OK. You will now see that the visible cells have been selected and the hidden cells are excluded. A small line within the selected area shows this.
  6. Now Copy the selected cells by right-clicking over the selected area and selecting Copy from the shortcut menu (or press Ctrl + C).
  7. Go to where you want to paste the data and select the cell that will be the top, left cell of the pasted range.
  8. Paste by doing a right-click and selecting Paste from the shortcut menu (or press Ctrl + V).

Excel Shortcuts for Copying and Pasting visible cells only (excluding hidden cells)

  1. Select the range to be copied, including the hidden data.
  2. Press ALT + ; (ALT + semicolon to select only visible data and exclude any hidden data)
  3. Press Ctrl + C (to copy)
  4. Go to where you want to paste the data and select the cell that will be the top, left cell of the pasted range.
  5. Press Ctrl + V (to paste the data).

Notes

Why does Copy and Paste include hidden data in Excel?

When you select a range that has hidden data, you are also selecting that hidden data. This means that when you copy and paste the data, the hidden data will be copied and pasted with it. If you want to copy and paste visible cells only, the trick is to ensure you are only selecting visible cells prior to doing your Copy.

Copying and pasting visible cells only in Excel (excluding hidden cells)

Super Tip: If you want to paste your cells with the exact same column widths as the sheet they were copied from, when you go to paste do a right-click and select Paste Special. From there, select Keep Source Column Widths (W).

If you enjoyed this post check out the related posts below.

Join our free insiders Group!

Learn how to SAVE TIME and WORK SMARTER, without the 'techie' speak!

How to paste when Copy area and paste area are not the same size?

Cause: The Copy area and the Paste area are not the same size and shape. Solution: Select the upper-left cell instead of the whole range before you paste. Click the cell where you want the upper-left cell of the copied data to appear. On the Home tab, click Paste.

What prevents replacing values in your paste area when blank cells occur in the Copy area?

Skip blanks Avoids replacing values in your paste area when blank cells occur in the copy area when you select this check box.

What is the size of 1 cell in Excel?

Related. By default, Microsoft Excel spreadsheet cells measure 8.43 characters wide – in the program's default typeface and size – by 12.75 points, where one inch equals 72 points.

Which of the following can you use to fill a group of cells with the same data or to extend a data series in MS Excel?

Detailed Solution. The Correct Answer is "Fill Handle". In Microsoft Excel, a fill handle is a feature to extend (and fill) a series of numbers, dates, or even text to a desired number of cells.