David,
I might be doing it wrong - but I dont think thats quite what I need (I
probably didnt describe it clearly).
Currently I've got:
Column A row 1, 4, 7, n = name
Column A row 2, 5, 8, n = address
Column A row 3, 6, 9, n = tel
I want to create
Column B = Name
Column C = Address
Column D = tel
I'm now thinking along the lines of a macro to select every third row,
copy and paste it. Cant quite figure out how to select several rows at
the same time.
I'm doing this:
For rw = 1 To 300 Step 3
Cells(rw, 2).Select
Next rw
Selection.Copy
Range("C1").Select
ActiveSheet.Paste
but it just copies the last row selected, not them all
Maybe theres a simpler way than a macro?
Andy
comish4lif@verizon.net - 16 Jun 2005 15:59 GMT
Simpler than a Macro? Yeah, try this.
Column A - Column B - Column C - Column D
Name......... =a1...........=a2.............=a3
Address.........leave row 2 empty...........
Tel.................leave row 3 empty........
Name......... =a4...........=a5.............=a6
Address.........leave row 5 empty...........
Tel.................leave row 6 empty........
You can copy b1:d3 and then paste it down the column in one shot as
long as select a number of rows divisible by three - so that there is a
place for each copied cell and equal number of times.
Once you have all of the name, address, tel in columns b, c, and d.
Select the three columns. Copy the columns. Then Edit | Paste Special |
Values to replace the formulae with the data. Then you can sort it to
remove the blank rows.
Andy - 16 Jun 2005 16:45 GMT
Thanks for all replies --
both Dave Peterson's and comish4's work well - the use of Offset is
particularly clever!
thanks
Andy