Large pastes

Jim Doornek

Board Regular
Joined
May 23, 2008
Messages
52
I am analyzing data in a large spreadsheet - 29000 rows and 125 columns.
In doing so, I frequently add new columns with formulas by adding the formula into row 1, testing to make sure it works, then copying and pasting it to the other 28999 rows. I do this by selecting the cell with the proven formula, and then drag and paste it to the bottom of my spreadsheet. This is very tedious and takes forever. Sometimes I overshoot my last row and need to carefully hang on to the left mouse button and drag the cursor back up to the correct cell.
There must be a better way?
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
Welcome to the Board!

Are you familiar with working without the mouse?

Let's say you're on row 1, column A and you want to copy that down (even the entire row) to the last row in A. You can highlight your copy area and hit CTRL+C (Copy), then SHIFT+END+Arrow Down (to select the entire used range beneath it)-->CTRL+V (paste).

That will take all of 3-4 seconds vs. trying to autofill the formula with the mouse (noting that I rarely ever use the mouse).

Hope that helps,
 
Upvote 0

Jim Doornek

Board Regular
Joined
May 23, 2008
Messages
52
Smitty-
Thanks for the advice. It worked just as you described. However, I noticed that the copy/paste was applied to all of the rows in the spreadsheet - even the rows lower than the ones that I have actual data in. So I'm wondering if there is a way to control the paste to limit it only to the rows already containing data.

For example, if my spreadsheet contains data in cells a1:a300, and I want to copy/paste data to cells b1:b:300 only, can I use your suggestion to do so?

Thanks again.
Jim
 
Upvote 0

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
even the rows lower than the ones that I have actual data in.

Sounds like Excel's catching the used range, in which case it will paste down to what it sees as used, even if you've deleted data.

The only way to get rid of the used range is by deleting the inactive rows (select the complete rows with Shift-->End-->Down, then /EDR (Edit-->Delete-->Rows).

Make sure to delete extra columns next, then save the file. I'll bet you find it to be a lot smaller.

This is just one of those things you play with and catch. ;)

As for the second question, if you specifically select a range, you'll only paste that same range; it won't expand like in my first example.

(OK, I'm pretty much outta' here for the night).
 
Upvote 0

Jim Doornek

Board Regular
Joined
May 23, 2008
Messages
52
Smitty-
When I do a ctrl/end, the cursor moves to the lower right corner of my actual data. However, when I follow your instuctions using shift/end/arrowdown method, I get the same results. The entire column (all 65,000 some rows) are pasted with the copy.
Maybe I'm doing something wrong?
This just seems like such functionality. I'm surprised that you cannot just type in a "destination range".
Thanks much for your help so far. i really appreciate it.
Jim
 
Upvote 0

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
If the entire column is being selected, then it generally means that Excel is seeing the entire thing as used, so you need to delete the unused rows.
 
Upvote 0

Forum statistics

Threads
1,190,653
Messages
5,982,126
Members
439,756
Latest member
alice128

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top