Extracting Only Street Name from Addresses

haulinoats

New Member
Joined
Jun 7, 2016
Messages
6
I am trying to perform an analysis in excel to determine which addresses may potentially the same. I'd like to extract only the street address (without the street suffix) into a new column.

Data:
[TABLE="width: 491"]
<colgroup><col></colgroup><tbody>[TR]
[TD]541 153RD ST[/TD]
[/TR]
[TR]
[TD]541 153RD ST APT 1[/TD]
[/TR]
[TR]
[TD]123 ROOSEVELT AVE # A[/TD]
[/TR]
[TR]
[TD]123 ROOSEVELT AVE[/TD]
[/TR]
[TR]
[TD]123 NW 4TH PL[/TD]
[/TR]
[TR]
[TD]123 NW 4TH PL[/TD]
[/TR]
</tbody>[/TABLE]

Current formulas:

Column B: =MID(S2,FIND(" ",S2)+1,50) - Result: 153RD ST
Column C: =LEFT(T2,FIND(" ",T2)-1) - Final Result: 153rd

Although this works well, my 3rd street address above (123 NW 4th PL) only extracts the NW instead of NW 4TH. I know there is probably a way to extract the entire street name for this scenario, but am struggling to do so.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
If all the strings have similar structure to the ones you have provided, download into column B the USPS abbreviations of street names (+ full names, if needed), and use the formula in C1:
Excel Workbook
ABC
1541 153RD STAVE153RD
2541 153RD ST APT 1ST153RD
3123 ROOSEVELT AVE # APLROOSEVELT
4123 ROOSEVELT AVEROOSEVELT
5123 NW 4TH PLNW 4TH
6123 NW 4TH PLNW 4TH
7555 BOSTON STBOSTON
Sheet
 
Upvote 0
Thanks István. This actually worked perfectly.

Since I'm dealing with thousands of addresses, I found that it'd be easier if I could write a formula that ignores the first street name when it's a direction (E, W, N, S, NW, NE, SE, SW) rather than relying on the USPS list of street suffixes (there are quite a few addresses that may not end with a USPS defined street suffix).

Meaning, in the example "123 NW 4TH PL," the formula will pull "NW 4TH" because it recognizes the 1st word as a directional word.
 
Upvote 0
Please show us a table with strings of different kind with the expected result (produced manually) according to the new conception.
 
Upvote 0
Data:
[TABLE="class: cms_table, width: 491"]
<tbody>[TR]
[TD]541 W 153RD ST[/TD]
[/TR]
[TR]
[TD]541 W 153RD ST APT 1[/TD]
[/TR]
[TR]
[TD]123 E ROOSEVELT AVE # A[/TD]
[/TR]
[TR]
[TD]123 E ROOSEVELT AVE[/TD]
[/TR]
[TR]
[TD]123 NW 4TH PL[/TD]
[/TR]
[TR]
[TD]123 NW 4TH PL

897 SE WASHINGTON ST

123 SD WASHINGTON ST

Find (Directional Fields):
"N, E, W, S, NE, NW, SE, SW"[/TD]
[/TR]
</tbody>[/TABLE]


Result:

[TABLE="class: cms_table, width: 491"]
<tbody>[TR]
[TD]W 153RD[/TD]
[/TR]
[TR]
[TD]E ROOSEVELT[/TD]
[/TR]
[TR]
[TD]E ROOSEVELT[/TD]
[/TR]
[TR]
[TD]NW 4TH[/TD]
[/TR]
[TR]
[TD]NW 4TH

SE WASHINGTON

SD
[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
I wanted to leave SD Washington as SD because I only want to account for directional words.

The directional words I want to look out for are:

N - North
E - East
W - West
S - South
NW - Northwest
NE - Northeast
SW - Southwest
SE - Southeast

Since "SD" isn't a directional word, I am okay with the address only extracting SD rather than "SD Washington."
 
Upvote 0
Give this formula a try (confirm with Ctrl -Shift -Enter):

=TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",200)),200,(1*(MIN(IFERROR(FIND({" NW "," NE "," SW "," SE "," N "," E "," W "," S "},A1),100))<100)+1)*200))
 
Upvote 0
I thought this one worked, but it looks like it didn't convert it for some:

Example:[TABLE="width: 491"]
<tbody>[TR]
[TD="class: xl66, width: 491"]2411 W BRYN MAWR AVE = "W" instead of "W BRYN"[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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