Mark
First thing. Is the data consistent? You show 5 rows of data for each group.
Is this what you have in the column? If you have spaces(blank rows) between
your data as you state you should get rid of them. Select the range of data
in Column A and Edit>Go To>Special>Blanks. With blanks selected
Edit>Delete>Entire Row.
Now, copy/paste this macro to a Module in your workbook. To get to the Visual
Basic Editor hit ALT + F11. Select from Menu Insert>Module and paste in the
code.
ALT + Q to go back to your worksheet. ALT + F8 to open Macro dialog box.
Select the coltorows macro and Run it.
You will be asked how many columns you wish. In the case of your example you
would pick 5. OK and your data will be laid out as shown below.
name address city state zip
name address city state zip
name address city state zip
If your data is not consistent, maybe an address or a state missing, you
could leave a blank space in that row of your list. Try it and see if it
meets your needs.
Sub ColtoRows()
Dim rng As Range
Dim i As Long
Dim j As Long
Dim nocols As Integer
Set rng = Cells(Rows.Count, 1).End(xlUp)
j = 1
nocols = InputBox("Enter Number of Columns Desired")
If Not IsNumeric(nocols) Then Exit Sub
For i = 1 To rng.Row Step nocols
Cells(j, "A").Resize(1, nocols).Value = _
Application.Transpose(Cells(i, "A").Resize(nocols, 1))
j = j + 1
Next
Range(Cells(j, "A"), Cells(rng.Row, "A")).ClearContents
End Sub
Gord Dibben XL2002