Text-to-Columns

The Excel feature, Text-to-Columns, is something I use everyday on my Windows (work) machine. It is extremely frustrating that there is no such command in Numbers that I can click through to separate a column of data that is straight-forward, separated by commas, hyphens, or whatever, and NUMBERS cannot do this.

Extremely frustrating.

MacBook Pro 15", 10.14

Posted on Jan 27, 2019 10:04 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 27, 2019 5:20 PM

To address this problem I wrote this Text to Columns Automator Service (Dropbox download).


It takes about a minute to install. Double-click the 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 just select the cells with the text you would like to split and choose Text to Columns from the Numbers > Services menu. Answer the prompt about the delimiter. Then click in the upper-left cell of the range where you want the values to go and command-v or Edit > Paste and Match Style to paste them. Unlike in Excel, this does not automatically add columns to the right. You need to make sure you already have enough blank columns before pasting.


SG





6 replies
Question marked as Top-ranking reply

Jan 27, 2019 5:20 PM in response to KCox_2019

To address this problem I wrote this Text to Columns Automator Service (Dropbox download).


It takes about a minute to install. Double-click the 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 just select the cells with the text you would like to split and choose Text to Columns from the Numbers > Services menu. Answer the prompt about the delimiter. Then click in the upper-left cell of the range where you want the values to go and command-v or Edit > Paste and Match Style to paste them. Unlike in Excel, this does not automatically add columns to the right. You need to make sure you already have enough blank columns before pasting.


SG





Jan 30, 2019 5:27 AM in response to Yellowbox

The data that I am attempting to split is a date column:

2014-03-21

2014-02-19

2015-06-12

2017-08-16

I want to separate the year from the months so that the result will be a single column of ‘years’ and a single column that begins with the month, 03-21.

Now however, I had the brainchild to duplicate the column, search and replace to remove the year from the second column.

I learned another disappointing fact that in Numbers, I cannot Find and Replace on a single column. I did read somewhere to copy the column to a new sheet, Find and Replace on that sheet. Low and behold, Find and Replace works on the entire document, not even restricted to a sheet.

Because this wiped out all the “years” on 50 pages of data, I’m extremely frustrated.

There were too many steps to undo, silly me thought that I could close without saving, but no, Numbers outsmarted me on this one, too, and saved the spreadsheet without me physically saving.

Now I have two columns of month/day, and no years.

Jan 30, 2019 6:15 AM in response to KCox_2019

Hi KCox,


Open the document.

Menu > File > Revert To > Browse All Versions

Look for a version before you did Search & Replace.


Or, if you have a Time Machine backup, look for a version before you did Search & Replace.


Once you have a version that shows the original dates, try this:

Formula in B2 =YEAR(A2)

Formula in C2 =MONTH(A2)

Formula in D2 =DAY(A2)


Those formulas will work in Numbers 5.3 regardless of whether Column A is formatted as Date & Time, Automatic or Text.

Fill those formulas down.

Save the document, and get back to us.


Regards,

Ian.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Text-to-Columns

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