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
I was thinking that might be easier (above). :rolleyes: But I'm looking now and it looks like those functions are gone. Let me try to stick them in again.
 
Upvote 0

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
When I type = in a cell, exactly nothing happens.

1584658922219.png


And these are the sheets in the document.

1584659005114.png
 
Upvote 0
Ok I reread and now I understood you (I have to type "=get"). You're right, it doesn't find it. I have seen a couple of messages pop up saying that "getzip" was ambiguous.

1584659103248.png
 
Upvote 0
Ok so I grabbed one from the dropdown: VBAProject.Module1.getzip. It appeared in the cell. I hit "Enter." This was the result.

1584659978554.png
 
Upvote 0
You have the functions in a number of different modules, you need to delete all but one instance of both functions.
 
Upvote 0
Hello again! Thanks for that. Here's my update. After I figured out how to remove the extra modules (yes, I actually had to figure it out), nothing was happening in the Zip Code column. I was just staring it. Then I started to click in and around it. Somehow, the zips appeared. I have no idea what I did or whether I can reproduce any of this.... but I'm going to try. ! Hopefully I can duplicate this sheet, paste the data from another state, and it will somehow work. It should, right? :oops: Anyway thank you again to everyone who helped. ?
 
Upvote 0
As long as it's in the same workbook, then everything should be ok.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,525
Members
449,088
Latest member
RandomExceller01

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