Have you ever tried to copy and paste a range with hidden rows or columns and didn't get the results you expected?

This problem can be frustrating and time consuming! In this post and video I will explain how to solve this problem with a very simple shortcut. The shortcut will select the visible cells only in a range, ignoring the hidden rows and columns.
Video
Please leave a comment below with any questions.
Why Are My Hidden Rows & Columns Being Pasted?
When you copy a range of cells that contains hidden rows or columns, Excel includes ALL of the selected rows. It does not matter if they are visible or hidden. When you go to paste the range, all the cells in the selection will be pasted.
This is actually a nice feature, but it's not always what we are expecting to happen. Sometimes we only want to copy and paste the visible cells, and exclude the hidden rows & columns.
This commonly happens when you are working with a range that has filters applied to it. Or when you have hidden rows or columns from a collapsed group in an outline. The Subtotals feature automatically creates row groupings that can cause rows to be hidden, as shown in the example above.
Select the Visible Cells Only

Excel gives us an option to select the visible cells only using the keyboard shortcut Alt+; (hold down the Alt key, then press the semi-colon key). The Mac shortcut is Cmd+Shift+Z.
This shortcut will exclude all the hidden rows and columns from the selection.
Copy & Paste Visible Cells
Here are instructions on how to copy and paste visible cells only (please see the video above for details):
- Select the entire range you want to copy.
- Press Alt+; to select the visible cells only. You will notice that the selection is cut up to skip the hidden rows and columns.
- Copy the range – Press Ctrl+C or Right-click>Copy
- Select the cell or range that you want to paste to
- Paste the range – Press Ctrl+V or Right-click>Paste
Alternatives to Alt+;
If you don't use this shortcut often then it might be hard to remember the keyboard shortcut. Here are a few alternatives for selecting visible cells.
Add a Button to the Quick Access Toolbar (QAT)

Please see the video for step-by-step instructions on how to add this button to the QAT. Pressing the button will select visible cells only. It also shows the keyboard shortcut when you hover your mouse over the button.
The Go To Special Menu
You can also find the Select Visible Cells Only option on the Go To Special menu.

This can be a very useful menu for selecting other types of cells besides just visible cells. As you can see in the image above there are a lot of options for different types of cells you can select.
There are a few different ways to open the Go To Special menu.
1. On the Home Tab of the Ribbon, press the Find & Select button on the far right side. Then choose Go To Special…

2. Press Ctrl+G or the F5 key on the keyboard from anywhere in a worksheet. Then press the Special button.

So Many Different Ways to Select Visible Cells
As you can see, there are a lot of different ways to select the visible cells in Excel. For me, the keyboard shortcut (Alt+;) is by far the fastest. If you don't think you'll remember it then put the button on the QAT. 🙂
Either way, this is one shortcut that should help save you a lot of time!
Paste to the Visible Cells Only
If you have ever received the following error message in Excel, “The command cannot be used on multiple selections”, then you know that you cannot paste to the visible cells in range that contains hidden rows or columns. This is a limitation of Excel, and it can be frustrating.

The video below explains two workarounds for this.
Click the following link to learn more about the Paste Visible feature and download a free trial of the Paste Buddy add-in.
Copy Visible Cells to Outlook Email
Mandy asked a great question in the comments below about how to paste the visible cells to an email in Outlook. The following screencast animation shows how to do this.
Here are the steps to copy the visible cells to an email :
- Select visible cells in Excel – Alt+;
- Copy the range – Ctrl+C
- Open an email in Outlook
- Choose from the Paste Options on the Message tab
The Paste button on the Message tab of the Ribbon contains a small drop-down arrow underneath it. Click this arrow to see the Paste Options. You can hover over each of the options to get a preview of what the paste will look like in the email.
When copying and pasting from Excel to Outlook, I usually use either the “Picture” or “Keep Text Only” options. If I know the user will be copying the data out of Outlook, then it's best to give them the text. If I know the user will only be looking at the data, then I will paste a picture because I know the formatting will remain in tact.
Please leave a comment below with any questions.




Dear Jon,
Its not working for me. My requirement is to paste the cell’s details in the required cells. you suggested that copy and pasting for all the cells. but i need only the selected cells to paste the details.
i want to paste the values in the 5th row and the 6th row. but it’s not working please help me..
Hi Naresh,
Have you tried using the Paste Visible feature of the Paste Buddy Add-in? I’m not sure I fully understand your question.
Thanks!
Thanks a lot for “ALT+;” !!!
It is marvelous. Everytime I used to do it like – CTRL+G then ALT+S then Y key…
You are my hero of the week!
Awesome! Thanks Timua! 🙂
Hi. How do I paste data to a filtered list and not paste into the hidden cells?
Hi Betsy,
It’s not possible in Excel through a paste command. However, my Paste Buddy add-in had a feature called Paste Visible that will do this.
I hope that helps. Thanks!
Hi Jon
I have 20 Lacks above Data in Sheet1 and I am trying to filter the data and it is filtering but when I am trying to copy visible cells only it is showing error: Microsoft Office Excel cannot create or use the data range reference because it is too complex. Try once or more of the following:
1. Use data that can be selected in one contiguous rectangle.
2. Use data from the same sheet.
Hi Tian,
You might want to try sorting the data first, so there are less non-contiguous ranges to copy. Here is a technet post that describes more about that issue. I hope that helps.
Thanks a lot.
You are doing a great job bro keep it up.
Thanks Salman! I appreciate the great feedback. 🙂
Thanks so much, really helpful and well explained.
Thanks Dawn! 🙂
THANK YOU FOR THIS ONE!!! Couldn’t be more clear!
How do I copy visible data from excel table and paste on visible empty raw and cell on same excel table?
Hi Bharat,
It can’t be done in Excel, but my Paste Buddy add-in has a feature called Paste Visible that can do that. Checkout the video on that page for more details. Thanks!
I had about 250 lines that I wanted to copy but with over 4000 hidden lines I didn’t want to copy. I knew there was a way but had no idea how. One quick google search brought me here. Thank you for the quick and easy walk through. This is going to be a very useful tool for me.
Thanks Wendy! I’m happy to hear this helped. Have a great weekend! 🙂
Thanks Wendy! I’m happy to hear this helped. Have a great weekend! 🙂
thanks for guiding me to copy from hidden files.this problem was being faced by me long time finally it solved. thank you so much
Awesome! Thanks for letting me know Vinod!
Thank you Jon. This is very helpful.Love keyboard shortcuts!
Thanks Reem!
Hi Jon
I tried to make it work in MAC but it doesn’t work.
I’m using Excel 2011 and trying to make a macro to copy the selected cells from a table (filtered) to another sheet in the same workbook, the idea is not to select the cells manually, I need that they be selected from the Macro and then copied and pasted to the other sheet, thus I select the columns instead.
Hi Octavio,
Unfortunately the Paste Buddy add-in does not work in the Mac version of Excel. You can write a macro to do this. You basically have to loop through all the visible cells and paste into them one by one from the copy range. I do have a free video series on how to get started with macros & VBA.
thanks for help, was very helpful
Awesome – thank you for saving me time!!
Thanks Shelly! Happy to hear it helped 🙂
Can Paste Buddy copy from Word and paste only in the visible cells?
Hi Chris,
No, it only works in Excel at this time. Thanks!
Is it possible to set it up in the preferences somewhere so that it will always paste only visible cells?
Hi Terena,
Unfortunately, I don’t believe there are any settings in Excel that will allow you to do that.
Hi Jon,
Very Useful, Very Helpful and Very Clear
Thank you very much for your time to put this all together!
Appreciated very much!
Thanks Andrew! I’m happy to hear you enjoyed it. Have a good one! 🙂
Hi Joe,
I have to copy data from my work sheet to summary sheet with only quarterly totals, I reference Q1 by (=’sheetname’!cellno) & then when I starch (fill the series) to Q2, Q3 …. Q10, it picks up hidden cells. How to pick up after skipping 3 next cells?
Hi Sanj,
Quarterly sum formulas are not easy to copy and paste across in Excel. I have actually developed a free add-in that creates the quarter sum formulas. Hopefully that helps. Thanks!
Thanks Jon,
this approach does not seem to work on xlsx. ControlC results in an error message about merged cells. any other approach? Cheers,
Hi JSG,
The copy will not work if part of the merged cells are hidden by a hidden row or column. With merged cells, all the columns or rows in the merged cell will need to be visible. The solution is to first unmerge the cells. I hope that helps. Thanks!
I need to copy the formulas from the visible range of cells top to down to a visible range of cells in columns left to right
This was extremely helpful.
The examples show how to copy the visible cells only. I want to know how to paste the data in visible cells only which has been copied from normal cells.
Hi John,
My Paste Buddy Add-in has a feature called Paste Visible which will do this. The section on the page above titled Paste to the Visible Cells Only has a video that explains in more detail. I hope that helps.
Thank you
Awesome, this is very helpful for me. Thank you so much, Jon. It’s help me save alot of time instead of copy and paste the visible cells manually!
Awesome! Thanks Thao!
Hello, excellent job. I would love to know how to develop add-ons in Excel. any reference that can help me?
Hi Shirin,
My VBA Pro Course explains how to create Excel add-ins step-by-step. If you are new to macros and VBA then checkout my free video series on getting started with Macros & VBA.
Does this only work for copy from the same document? I’m trying to copy from a completely different document and it’s not working.
Hi Gary,
At this time the Paste Visible feature of Paste Buddy only works within the same workbook. I have plans to update that in the future to copy between workbooks, but not sure when that will be available yet.
Thanks!
Easy to understand. The step-by-step instructions along with the video gave me exactly what I was looking for.
Thanks very much!
Awesome! Thanks for letting me know it helped, Debra! 🙂
Thanks a lot
I’ve had no problem with bulk coopy/paste on filtered cells until today. Now when I copy, the data pastes into the hidden cells. Any idea why this would be happening now? It’s been fine for months. Did I change something?
The advice on copying visible cells only doesn’t seem to work in Microsoft Office Professional Plus 2103. I tried all 3 ways but to no avail.
Any suggestions?
Thanks
Carole Kearns
Hi Carole,
I’m using Excel 2013 in the video, and these techniques do work in all Windows versions of Excel.
Thanks Jon. I will give it another try.
This video was exactly what I was looking for! Excel on a Mac is pretty terrible and I could not find the shortcut in the Help wizard. Your result was the first Google search option and should be because your video is very helpful!
Thank you Kari! I really appreciate the nice feedback, and happy to hear you got it working on the Mac. 🙂
Excellent. Great job. Thanks for saving me time.
Excellent short-cut advice on coping visible cells only.
Thanks
I have filtered cells and want to copy and past a formula into the visible cells only. Will this work for that as well?
Thanks
Hi Kari,
Yes, the Paste Visible feature of Paste Buddy has a Paste Option that allows you to paste values, formulas, formats or any of the Paste Special commands. I hope that helps.
HI ,
I want to copy a list of items from a normal column and paste it to a filtered column ..
i.e say Column A is 1,2,3,4,5 from another sheet and Column B is a, b , a , a , d , a .. i would like to filter column B for a and paste .. the Column C as 1,2,,3,4,5,
i.e , a=1 , a=2 , a=3 etc ..
Can you help on this .. Thank you ..
And .. Good Job .. Nice work .. keep it going ..
When i’m trying this on merged cells, it does not allow me to copy.
How do I copy only visible cells with merged rows
Hi Umair,
Merged cells can cause a lot of issues like this. I’m not sure it’s possible. I would recommend using the “Center Across Selection” option instead of merged cells.
Thanks for the help.
can you help me copy big file not including the hidden files.
there is prompt Microsoft excel cannot create or use the data range reference because it too complex.
there is other way to copy the file?
Hi Christian,
You might want to try sorting the data first, so there are less non-contiguous ranges to copy. Here is a technet post that describes more about that issue.
Hi Jon,
I have data with big file in Sheet1 and I am trying to filter the data and it is filtering but when I am trying to copy visible cells only it is showing error: Microsoft Office Excel cannot create or use the data range reference because it is too complex. Try once or more of the following:
1. Use data that can be selected in one contiguous rectangle.
2. Use data from the same sheet.
Can you help me how to copy that one
Hi Tian,
You might want to try sorting the data first, so there are less non-contiguous ranges to copy. Here is a technet post that describes more about that issue. I hope that helps.
Hi
I have followed your information about how to cut and paste visable cells only however when i paste to the column it only pastes the first cell and not the others but does highlight all the visable cells i wish to paste any help with issue?
I am using Excel 2010
thank you in advance for your help
Thanks Mr. Jon for your guidance i appreciate that this is so helpful for everyone who use excel.
one comment i have is that i watch the video of Past in visible cells that was great and helpful and you developed a button for past in visible cell how can we active this button in Excel and use it everywhere.
if possible please assist me to add this button in excel and use that.
Thanks so much in advance
Hadi
Hi Hamid,
You can download and install the Paste Buddy Add-in to use the Paste Visible feature in any workbook you have open on your computer.
Dear Sir,
i used the shortcut of ALT+Enter to past in visible cells only, it worked perfectly.
now i want to remove the sheet from where I copy the data. when I removing the sheet(main sours) the copied data are automatically change looking like(#REF!)
so the data should copy without formula because i just need the value to to be past not format and formulas or cut the link of them.
because if the link is not cut when we removing the main sours from where we copy the date is changing or give us error(#REF!)
Thanks for your guidance
All the best
Hadi
Sir sorry for mistake (Alt+ Enter)that i made in my above comment that was Ctrl+enter.
one more comment, the tactic(Alt+Enter) to past in only visible cells is just working in same sheet and workbook or one sheet and workbook.
if we copy from other workbook and past to another workbook, its not working.
you have any recommendation for this problem?
All the best
Hadi
Dear Sir,
I used the shortcut of Ctrl+Enter to past in visible cells only, it worked perfectly.
now i want to remove the sheet from where I copy the data. when I removing the sheet(main sours of data) the pasted data are automatically change looking like(#REF!)
so the data should copy without formula because I just need the value to be past not format and formulas or after past the link between them should cut.
because if the link is not cut when we removing the main sours from where we copy the date its changing or give us error(#REF!)
one more comment, the tactic(Alt+Enter) to past in only visible area is just working in same sheet and workbook or one sheet and workbook.
if we copy from other workbook and past to another workbook, it’s not working.
you have any recommendation for this problem?
Thanks for your guidance
All the best
Hadi
this helped me out! Quick and easy, right to the point.
thank you,
Angel
date : 25-02-2017 time 20.36pm
Thank you very much jon, your excel command tips for windows of visible cell copy paste
worked well for my sheet which has 30 columns , and i want to select 5 out 30 paste your this command saved my lot of time.
thanks angain , keep sending such useful tips.
thanking you
yours truly
Ranganath Satam.(India)
awesome!! there’s even a keyboard shortcut.
thanks mate
You are a life/time saver! Thanks so much!
Jon – can you help with copying from a table with hidden columns? When pasting, the hidden column data gets inserted into the visible columns and the data gets all out of whack! Column B hidden. Copy single row, columns A to D and data in column B appears in Column C when pasted.
how may i filtering data special pest int the same cell ?
Dear Sir,
Have a Great Day Ahead,
Please see below mentioned data that I tried my best for your better understanding.
I want result in Cell E3 when I filter data in Cell A7, (Vendor Name should be appear in Cell E3). Hope to hear from you as soon as possible.
BR/
Hussain
(Cell E3) Vendor Name: Abdul Aziz Fahad Al Hajri Est
(Cell A7) Vendor Name
Mana Al-Haider Cont. Est.
Ali-Ahmed-Al-Kanfari Gen. Co. Est.
Abdul Aziz Fahad Al Hajri Est
Danat Al-Rayan
a big thank to u…a life saver
Great Lesson!! You are very clear. I would like to subscribe to everything you offer. Thanks!