View Single Post
  #7   Report Post  
Difficult1
 
Posts: n/a
Default Text Splitting easier? (Tokeniser?)

Lee,

Insert a column after your combined info (Surname and Forename), highlight
the column you want split out (ie if Surname and Forename are in Column "A",
highlight "A") then go to the "Data" menu and "Text to Columns". If your
data is consistant (ie John Smith and none without a Middle Initial) I would
suggest using the delimated by character, the character being the space. The
wizard will walk you through the rest.

Difficult1

"Lee Harris" wrote:

I've a column of text, generally in the form

Surname, Forename


I want to split into two columns automatically with Forename and Surname
separately. I've been able to do it with MID and FIND, but it's quite clunky
and wondered if there was a quicker, easier or more elegant way just to
tokenise a string based on a defined separator (in this case the character ,
followed by a space)

tks in advance