Extracting only the State from Full Address & Coordinate Cells

dmshott

New Member
Joined
Aug 28, 2015
Messages
4
I have a problem where I have a long list of addresses (400+) with the Street, City, State, Zip, Latitude, Longitude.

I need to extract only the state from each cell using a formula.

Here are some sample formats:

2001 Medical Parkway
Annapolis, Maryland 21401
(38.989104498000074, -76.53618365899996)

6767 West Greenfield Avenue
Milwaukee, Wisconsin 53214
(43.016701889000046, -87.99660976799998)

... But then there are also cells like this:

One Monarch Place
Springfield, MA 01144
(42.10150383600006, -72.59184032799999)

Is there any way to do this using a formula? My overall goal is to generate a State-map map, and count the number of instances for each state.

Any help would be HUGELY appreciated.

 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Try :-
Code:
=LEFT(MID(A2,FIND(",",A2)+2,FIND("(",A2)-1-(FIND(",",A2)+2)),LEN(MID(A2,FIND(",",A2)+2,FIND("(",A2)-1-(FIND(",",A2)+2)))-6)

hth
 
Upvote 0
May be :

=LEFT(MID(A1,FIND(",",A1)+2,250),FIND(" ",MID(A1,FIND(",",A1)+2,250))-1)
 
Upvote 0
Or,

If the Zip always in 5 digits, the formula can be shortened to :

=MID(A1,FIND(",",A1)+2,FIND("(",A1)-FIND(",",A1)-9)
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,196
Members
449,072
Latest member
DW Draft

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