realtoast
New Member
- Joined
- Nov 24, 2015
- Messages
- 47
- Office Version
- 365
- Platform
- Windows
- MacOS
- Mobile
- Web
Experts,
I customer provided table that has a single field, Address, where Address 1, Address 2, City, State, Zip are separated by comma. I need a formula or sequence of steps to split these addresses into columns titled, Address 1, Address 2, City, State, Zip. As you can see, because some addresses have apartment numbers or other text after the first comma, Text To Columns shuffles the results. I figure, if I can get City, State, Zip extracted to a column, I can use Text To Columns to separate them properly. But what to do with the left-most data, where some have apartments and others don't?
Here is an example of the table (fake addresses):
I customer provided table that has a single field, Address, where Address 1, Address 2, City, State, Zip are separated by comma. I need a formula or sequence of steps to split these addresses into columns titled, Address 1, Address 2, City, State, Zip. As you can see, because some addresses have apartment numbers or other text after the first comma, Text To Columns shuffles the results. I figure, if I can get City, State, Zip extracted to a column, I can use Text To Columns to separate them properly. But what to do with the left-most data, where some have apartments and others don't?
Here is an example of the table (fake addresses):
4233 JOSSELYN CANYON RD, 21, MONTEREY, CA, 93940 |
4233 JOSSELYN CANYON RD, 21, MONTEREY, CA, 93940 |
4233 JOSSELYN CANYON RD, 21, MONTEREY, CA, 93940 |
4233 JOSSELYN CANYON RD, 21, MONTEREY, CA, 93940 |
4233 JOSSELYN CANYON RD, 21, MONTEREY, CA, 93940 |
4233 JOSSELYN CANYON RD, 21, MONTEREY, CA, 93940 |
8735 YANKEE JIM CT., VALLEJO, CA, 94589 |
8163 W. MONTE VISTA AVE, #261, TURLOCK, CA, 95351 |
1578 DANIELS AVE, APT #45, VALLEJO, CA, 94590 |
975 MOSSWOOD LANE, SANTA ROSA, CA, 95401 |
74789 CEDAR RD, VISTA, CA, 92083 |
7534 CHRYSLER DR, APT #1, MODESTO, CA, 95350 |
7625 EAST LINWOOD AVE, 78, TURLOCK, CA, 95380 |
9987 EUREKA DRIVE, TURLOCK, CA, 95380 |
9987 EUREKA DRIVE, TURLOCK, CA, 95380 |
8976 N BERKELEY AVENUE, TURLOCK, CA, 95382 |
9823 MELINDA AVENUE , DELHI, CA, 95315 |
9823 MELINDA AVENUE , DELHI, CA, 95315 |
9823 MELINDA AVENUE , DELHI, CA, 95315 |
9823 MELINDA AVENUE , DELHI, CA, 95315 |
9823 MELINDA AVENUE , DELHI, CA, 95315 |
2809 VIA PIEDMONT, GUSTINE, CA, 95322 |
1321 NUNES ROAD, APT 27, TURLOCK, CA, 95382 |
1321 NUNES ROAD, APT 27, TURLOCK, CA, 95382 |
8965 SILVERADO DRIVE, MANTECA, CA, 95337 |
8965 SILVERADO DRIVE, MANTECA, CA, 95337 |
8965 SILVERADO DRIVE, MANTECA, CA, 95337 |
8965 SILVERADO DRIVE, MANTECA, CA, 95337 |
8965 SILVERADO DRIVE, MANTECA, CA, 95337 |
8965 SILVERADO DRIVE, MANTECA, CA, 95337 |