Need to convert/transpose single column of addresses to separate columns (name, city, state, etc.), but not all addresses have the same number of rows

Myhobohemia

Board Regular
Joined
Mar 12, 2020
Messages
54
Office Version
  1. 365
Platform
  1. Windows
HI there. As I said in the subject line, I need to convert a single column of addresses and transpose them into their separate fields. This would be fairly easy, except that the number of rows is irregular, ranging from 6-13 rows. Most are about 7 or 8. I can't figure out how to automate this. Right now, the individual addresses in the column are not separated by anything. The last row of each address is a hyperlink, for what it's worth (and hyperlinks are searchable using the search feature, I learned yesterday, but to no avail). I have never done a macro or used VBA in my life! :oops: I can, however, follow clear instructions. ? I have dozens of separate documents, some with hundreds of addresses, some with only a handful. The worstcase scenario would be to have to transpose each address manually. But I'd like to avoid it, particularly since it looks like there will still be plenty of manual work later, getting everything into the right column. Any suggestions?! Thanks in advance. Attaching an image of the data.
 

Attachments

  • 20.03.12  Address data that needs to be transposed.JPG
    20.03.12 Address data that needs to be transposed.JPG
    54.2 KB · Views: 49
Delete any code you have already copied, along with any modules you may have created.
Then Insert a new module, copy the code from post#29 & paste it in the new module, save the workbook as macro enabled .xlsm file, if it isn't already & then try & run it.
 
Upvote 0

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
It worked! :biggrin: Thank you!! It was instant. Since that time, I have been trying to copy-paste a sample and ask a couple more questions, but now my XL2BB add-in disappeared. ?! Do I have to uninstall it when I downloaded it only yesterday? No, right? Then why won't it come up? I went to the file itself and tried to run it and nothing happened. :rolleyes:
 
Upvote 0
Go to the folder that contains the XL2BB add-in & right click on the file & properties & check Unblock.
Then on the developer ribbon > "Excel add-ins" > check the box by XL2BB
 
Upvote 0
Weirdly, 1) it was unblocked in "properties" and 2) it was checked in "Excel Add-ins." :unsure:
 
Upvote 0
Do you have the MrExcel tab on the ribbon?
1584128804824.png
 
Upvote 0
I did yesterday, but it disappeared. Both from yesterday's Excel, and the brand new Excel I just created to insert the module. And yet the add-in appears as active.

1584129153944.png
 
Upvote 0
What happens if you move it to this folder
C:\Users\your username\AppData\Roaming\Microsoft\AddIns
 
Upvote 0
Well. This has really been a .... how should I put it... voyage of discovery. Folders aren't there, then they are. Then they aren't. There is no "AppData" folder under my user name. But there was under a Default User I didn't know was there. I found this only by using the search feature. Now it doesn't appear at all. You can't see it visually as a folder.

1584132216564.png
 

Attachments

  • 1584132187913.png
    1584132187913.png
    47 KB · Views: 2
Upvote 0
Your settings are probably set to "Don't show hidden files, folders or drives"
 
Upvote 0

Forum statistics

Threads
1,217,440
Messages
6,136,628
Members
450,022
Latest member
Joel1122331

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top