I suggest that you close any applications you are not using and only have
excel and your internet open with this posting so that you do not get
confused about which window you are working with.
WARNING:- Create a backup copy of your workbook in case something goes wrong.
Your data is to be in column A only. If not, you need to place it in column A.
If you have a column header then delete the entire row to remove it so the
data starts at cell A1.
Alt/F11 to open VBA Editor.
Click on menu item Insert then Module.
Copy the macro from this posting into the VBA editor. (The large white blank
area on the right after you inserted the module.). Ensure that you copy only
the macro and that you get it all from Sub Process_Name_Address() to End Sub.
There is a comment which is in green telling you to adjust the range of data
in the following command line which is in black print to match the range
which you have. You should only have to change the 999 to match the last row
of your data.
Change windows back to the Excel Worksheet. (Ensure that you are on the
worksheet with the raw data because the macro runs on the active sheet.)
Select Tools->Macro->Macros->Process_Name_Address->Run
The Macro will copy the worksheet to a new one so that your original data is
not destroyed if the macro does not do what you want it to. If it is not
right, you can simply delete the processed sheet and go back to the original
sheet with your original data still intact.
Sub Process_Name_Address()
Dim rngList As Range
ActiveSheet.Copy Before:=Sheets(1)
Columns("B:G").ClearContents
Range("B1") = "Name"
Range("C1") = "Address"
Range("D1") = "CityStateZip"
'Adjust the following range A1:A999 to suit your range
Set rngList = Range("A1:A999")
For i = 1 To rngList.Count Step 3
Cells(Rows.Count, 2).End(xlUp).Offset(1, 0) _
= Cells(i, 1)
Cells(Rows.Count, 3).End(xlUp).Offset(1, 0) _
= Cells(i + 1, 1)
Cells(Rows.Count, 4).End(xlUp).Offset(1, 0) _
= Cells(i + 2, 1)
Next i
Columns("A:A").Delete
Columns("A:C").AutoFit
End Sub
Hope it works as you want.
Regards,
OssieMac