Extract from Address

Izzy2091

New Member
Joined
Aug 9, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I have an address cell that I need extracted to Street Address, City Name, and 5 digit zip. So from one cell to three cells. There is no commas and the city name is sometimes two words. Is this possible? Examples Below.

1234 FILIFERA WAY ANTELOPE CA 95843-5322

1235 FILIFERA WAY CITRUS HEIGHTS CA 95843-5322

 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Welcome to the Board!

Can you explain, in plain English, that for any entry, how to determine where the street name ends and the city name starts?
If you cannot explain the logic to use that will work every time, then you probably cannot program it.
Programming in Excel is not magic, it is very literal. You have to first come up with the rules to follow, and then you can program to those.
However, if you cannot come up with well-defined "rules" for us to follow that will work or every entry you have, then we probably cannot build you anything that is guaranteed to always work.

This question gets asked a lot with splitting things like addresses and names. Unfortunately, it can be very difficult to work with unformatted (or poorly formatted) data.
Usually, the best that you can do is to try to come up with a rule that works "most of the time", but then that still leaves you with having to go through and manually check and fix entries.
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,893
Members
449,097
Latest member
dbomb1414

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