I am working on the 2020 Luca program for the Census.
I have a table in excel with a bunch of addresses but everything is in one column, I need to isolate the fields.
street number, street name, apt number.
for example my addresses look like: "123 North G St 301" or "123 North G St A" (apartment could be a number or letter) So I would need the above address in 3 separate columns
street Num | Street Name | Apt Num
123 | North G St | 301
I was able to isolate the street numbers, but am stuck on isolating the street name without the apartment number, and isolating the apartment number. one pattern I see is to capture everything after the 4th " " char to get the apartment number but not sure how to do this. and for the street name I need to capture everything after the first " " and everything before the last " " char.
anyone have any ideas?