Page 1 of 1

split 1 column into 2 based on first appearance of character

Posted: Fri Dec 06, 2013 6:20 am
by edekker
Suppose you have this layout

5 figures<tab>word word word, word, word, word,word<tab>word<tab>

Now I want to split the second column into 2 columns. The seperator is left most comma in the second column.

So far I would do this in Excel (to get the columns right) and Word (to split 1 selected column, but textpipe should be able to do this too.

in plain text:
Look for the first <tab>
then replace the first comma with a <tab>

I don't know how to do this in textpipe

Re: split 1 column into 2 based on first appearance of chara

Posted: Thu Dec 12, 2013 12:21 pm
by DataMystic Support
Use a restrict to Tab-delimited field filter.
Set it to restrict to field 2 only.
Inside this, add a search/replace of comma with Tab (\t), and check 'First Match Only'