Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

I was asked to separate city, state, and zip (contained in one column) to 3 separate columns.

I have used this rather inelegant method successfully several time.




















I have used this rather inelegant method successfully several time.


Posted on Jan 17, 2019 10:35 AM

Reply
4 replies

Jan 19, 2019 2:22 PM in response to Lady at the Lake

Conceptually, I would FIND for the comma and select the city from 0 character to the position of the comma. Then look for the first number and since there are no numbers in city or state, it will find zip. Then strip the length of the number field into the column desired.


The LEN and MID function can be helpful there, along with FIND or even SEARCH.

Jan 21, 2019 4:08 AM in response to Lady at the Lake

An efficient way to do this is to use this Text to Columns Automator Service (Dropbox download).


Installation takes less than a minute. Doubleclick downloaded .workflow package and if necessary give permission at System Preferences > Security & Privacy. Also make sure Automator.app and Numbers.app are listed and checked at System Preferences > Security & Privacy > Privacy > Accessibility.


To use simply select the cells with text you want to split, choose Numbers > Numbers Services > Text to Columns from the menu, answer the prompt about the separator character ( , or space or other character). Then click once in the upper left cell where you want the results to appear (usually the top body cell of the adjacent column to the right, but it could be anywhere) and command-v or Edit > Paste and Match Style to paste the values. They will appear in separate columns.


SG


I was asked to separate city, state, and zip (contained in one column) to 3 separate columns.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.