Splitting an address field into separate fields

bearcub

Well-known Member
Joined
May 18, 2005
Messages
701
Office Version
  1. 365
  2. 2013
  3. 2010
  4. 2007
Platform
  1. Windows
I following the following address field that I received from one of our field offices. They combined the address and CSZ into one field. However, I need to have them all in a separate field for my formulas to work properly. I can't use formulas because until now, all of the fields have been separated properly or the address fields are missing.

This is the type of field format I just received.

14625 BANCROFT AVENUE SAN LEANDRO, CA 94578


looks like their is a comma delimited for the city but everything else has spaces . This data comes from their own separate db.

is it possible to have it appear in the following format:

Code:
Col D                             Col E              Col F     Col G
14625 BANCROFT AVENUE       San Leandro,              CA        94578

Thank you for your help,

The sheet I'm working on now has close to 7 hundred hours. Other offices might have more or have less.

Michael
 
Yes, I've run into some of these problems that you mentioned.

I will inform the chapter that they need to fix their data based upon the USPS format.

Thank you again,

Michael
 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
I would download the list of cities in California along with their zip codes (Sheet 2), try to find the city according to the found zip code, and would check if the city is really contained in Sheet 1 Column A. If there are many differences I would try another (up-to-date) zip code list.

Excel Workbook
ABCD
11271 ISLAND DRIVE ALAMEDA, CA 94502Alameda 
214723 BANCROFT AVENUE SAN LEANDRO, CA 94578San Leandro
3560 THARP DRIVE MORAGA, CA 94556Moraga
45002 LADNER STREET FREMONT, CA 94538Fremont
521820 GILL PORT LANE WALNUT CREEK, CA 94598Walnut Creek
6710A COOLIDGE AVE. OAKLAND, CA 94602Oakland
726765 VENTRY WAY SAN LORENZO, CA 94580San Lorenzo
82068 WILSON AVENUE CASTRO VALLEY, CA 94546Castro Valley
913970 INTERNATIONAL BLVD. #22 1 OAKLAND, CA 94603Oakland
104567 FAIRWAY AVENUE OAKLAND, CA 94605Oakland
1120150 NATALIE COURT CASTRO VALLEY, CA 94546Castro Valley
121750 POMONA AVENUE EL CERRITO, CA 93704Fresno#VALUE!
13975 WESTWOOD COURT RICHMOND, CA 94803El Sobrante#VALUE!
1438952 DUBLIN GREEN DRIVE DUBLIN, CA 94568, CA 94596Walnut Creek#VALUE!
15200 VIOLET STREET SAN LEANDRO, CA 94578San Leandro
16963 SANTIAGO DRIVE DANVILLE, CA 94526Danville
174516 MLK JR. WAY #2C BERKELEY, CA 94709Berkeley
1826783 SIERRA AVE HAYWARD, CA 94541Hayward
19403 VINEYARD COURT PLEASANT HILL, CA 94523Pleasant Hill
20876538 Tidewater Drive Union City, CA 94587Union City
21834A BEACON STREET SAN FRANCISCO, CA 94134San Francisco
22897 REFLECTIONS DRIVE #22 SAN RAMON, CA 94583San Ramon
Sheet1


Excel Workbook
AB
190001Los Angeles
290002Los Angeles
390003Los Angeles
490004Los Angeles
590005Los Angeles
690006Los Angeles
790007Los Angeles
890008Los Angeles
990009Los Angeles
Sheet2
 
Upvote 0
This is cool, thank you. What do the exclamation marks mean in the second formula (what kind of wild card do they represent)?

Michael
 
Upvote 0
Exclamation mark was to show items where the name of the city belonging to the given zip code and the one in the address string is different. Now these issues are marked by the #VALUE error in Sheet 1 column D. These #VALUE erros should be checked why the city in the string as well as the city in the "official" list is different.

If there are cities, for example named XYZ and North XYZ then the zip code list in Sheet 2 should be first put in descending order of the length of the city name before use.
 
Upvote 0

Forum statistics

Threads
1,214,922
Messages
6,122,281
Members
449,075
Latest member
staticfluids

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