Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel - inserting lines 1

Status
Not open for further replies.

Santee

MIS
Jul 24, 2001
21
0
0
US
How can I take rows of data and insert two lines between them. See example below:

Looks like this:

A B
1 234 at
2 342 be
3 125 ant
4 782 deal
5 572 field

Needs to look like this:

A B
1 234 at
2
3
4 342 be
5
6
7 125 ant
8
9
10 782 deal
11
12
13 572 field

There are several hundred lines and I need to get two lines between them. Can anyone give me a quick way of doing this?

Thanks!
 

Assuming you don't want to use VBA, one way is to put these formulae in column C:
[tt]
C1: 1
C2: =C1+3
[/tt]
Then copy the formula in C2 down the column (double-click the little black square in the lower-right hand corner)

Then put this formula in the next available row in column C:
[tt]
C501: =C1+1
[/tt]
{If you have 500 rows of data for example.)
Then copy that formula down for two times the number of rows of data you have. (E.g., If you have 500 rows of data, copy the formula from row 501 through row 1500.)

Finally, copy and paste-special-values the contents of column C on it self and sort on column C.

When finished, delete or clear column C.

 


Hi,

Is there a reason for inserting 2 rows between each row of data?

Skip,
[sub]
[glasses] [red][/red]
[tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top