Warning

 

Close
Confirm Action

Are you sure you wish to do this?

Cancel Confirm
AR15.COM
1/12/2015 3:17:36 PM EDT
I'm trying to insert a certain number of rows in-between existing rows...

Example: I have a column with 50 rows each with unique data. I need to insert 25 rows in-between each existing row without having to click "insert" 25 times. or even highlighting 25 rows below an clicking "insert."
There's got to be a faster way to accomplish this...

A
data1
data2
data3
data4

to

A
data1
(25 rows)
.
.

data2
25 rows)
.
.

data3
25 rows)
.
.

data4
25 rows)
.
.

1/12/2015 3:18:26 PM EDT
[#1]
Did you try recording a macro?
1/12/2015 3:20:45 PM EDT
[#2]
It's going to take you longer to write a macro than to right-click and type "I" 25 times.
1/12/2015 3:21:48 PM EDT
[#3]
Copy paste 25 empty rows in between, done in 10 seconds


1/12/2015 3:26:59 PM EDT
[#4]
I'd add a dummy column at the far left, and populate the first 50 rows with odd numbers as follows:
A1 would be the number 1




A2 would be the formula =A1+ 2




Copy and past the formula from A2 into A3 through A50.
Similarly populate A51 through A100 with even numbers.
A51 would be 2




A2 would be =A51+ 2




Copy and past the formula from A52 into A53 through A100.
Then copy the contents of column A, and Paste Special it back in to column A specifying only Values.  That gets rid of the formulas.
Sort the whole sheet by Column A.
Drop Column A.
Profit.
 
1/12/2015 3:32:48 PM EDT
[#5]
Quote History
Quoted:
Copy paste 25 empty rows in between, done in 10 seconds
View Quote


I'm actually working with thousands of rows. This method would take forever.
Plus, once you 'paste' the 25 you have to re-copy the blanks again for the next row...

1/12/2015 3:36:50 PM EDT
[#6]
Quote History
Quoted:
I'd add a dummy column at the far left, and populate the first 50 rows with odd numbers as follows:

A1 would be the number 1
A2 would be the formula =A1+ 2
Copy and past the formula from A2 into A3 through A50.

Similarly populate A51 through A100 with even numbers.

A51 would be 2
A2 would be =A51+ 2
Copy and past the formula from A52 into A53 through A100.

Then copy the contents of column A, and Paste Special it back in to column A specifying only Values.  That gets rid of the formulas.

Sort the whole sheet by Column A.

Drop Column A.

Profit.

 
View Quote


Is this adding a single row between each?


1/12/2015 3:43:23 PM EDT
[#7]
kutools

Is the fast easy non-cheat way, for $40 (unsure if there is a trial)
1/12/2015 3:43:29 PM EDT
[#8]
check out this Excel add on package. There is a function for inserting blank rows. Free download and trial period.

ASAP Utilities
1/12/2015 3:46:26 PM EDT
[#9]
Unfortunately, I don't have a better suggestion than the insert thing. Without knowing exactly what you're doing, I'd take this opportunity to reevaluate your use of excel. I'm guessing this sheet either needs to be structured differently or housed in something like Access. Purely a guess, and not too helpful for right now but might avoid future headaches.
1/12/2015 4:07:26 PM EDT
[#10]



Quote History
Quoted:
Is this adding a single row between each?


View Quote View All Quotes
View All Quotes
Quote History
Quoted:
Quoted:



I'd add a dummy column at the far left, and populate the first 50 rows with odd numbers as follows:
A1 would be the number 1



A2 would be the formula =A1+ 2



Copy and past the formula from A2 into A3 through A50.
Similarly populate A51 through A100 with even numbers.
A51 would be 2



A2 would be =A51+ 2



Copy and past the formula from A52 into A53 through A100.
Then copy the contents of column A, and Paste Special it back in to column A specifying only Values.  That gets rid of the formulas.
Sort the whole sheet by Column A.
Drop Column A.
Profit.
 




Is this adding a single row between each?






Yes.
The temporary column A acts as an index that you are force-populating with values.  It will work with a million rows as easily as it does with 100.  I use Excel to manipulate data a lot.



Since you have thousands of rows you'll have to adjust the instructions to fit.  Your populated rows get odd numbers in column A, then you create an equal number of blank rows populated with even numbers.  
 
1/12/2015 7:24:28 PM EDT
[#11]
Quote History
Quoted:
Unfortunately, I don't have a better suggestion than the insert thing. Without knowing exactly what you're doing, I'd take this opportunity to reevaluate your use of excel. I'm guessing this sheet either needs to be structured differently or housed in something like Access. Purely a guess, and not too helpful for right now but might avoid future headaches.
View Quote


I can't count the number of times I've seen excel hacked up to act like database app.  

I also guessing that if you are trying to add 25 pieces of information to each of your main pieces of data (initial columns), you should be importing it into Access.  

Think of Excel as a fancy calculator/tabulation and graph tool.

If you need to organize information (names/numbers/etc) in addition to calc and graph, you should be using a database app, Access being a common and easy to use one.