Home

Formula to move text to col - 4 Words

%3CLINGO-SUB%20id%3D%22lingo-sub-122379%22%20slang%3D%22en-US%22%3EFormula%20to%20move%20text%20to%20col%20-%204%20Words%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-122379%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20process%20that%20i%20need%20to%20repeat%20on%20a%20regular%20basis%20during%20data%20cleansing%20and%20that%20is%20to%20separate%20each%20title%2Fname%20in%20to%20it's%20own%20column.%20The%20list%20contains%2C%20first%20name%2C%20last%20name%2C%20and%20sometimes%20middle%20name%20and%20sometimes%20professional%20title%20prefixes.%20I%20have%20listed%20a%20couple%20of%20example%20of%20the%20data%20i'm%20working%20with.%20Any%20help%20would%20be%20greatly%20appreciated.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E_____________________________________________________%3C%2FP%3E%3CP%3EAssociate%20Professor%26nbsp%3BJohnathan%26nbsp%3BDavid-Kerigahan%3C%2FP%3E%3CP%3EDr%26nbsp%3BJing%20Broadfoot%3C%2FP%3E%3CP%3EMr%26nbsp%3BMick%20Ryan%3C%2FP%3E%3CP%3EDianne%26nbsp%3BFranks%3C%2FP%3E%3CP%3E____________________________________________________%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%20Mick%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-122379%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20%26amp%3B%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ENeed%20Help%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-123805%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20to%20move%20text%20to%20col%20-%204%20Words%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-123805%22%20slang%3D%22en-US%22%3E%3CP%3EMichael%2C%20just%20in%20case%20here%20is%20set%20of%20formulas%20to%20split%20names%20on%20columns%2C%20however%20no%20universal%20one.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2FSplit-text-into-different-columns-with-functions-49ec57f9-3d5a-44b2-82da-50dded6e4a68%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2FSplit-text-into-different-columns-with-functions-49ec57f9-3d5a-44b2-82da-50dded6e4a68%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-122506%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20to%20move%20text%20to%20col%20-%204%20Words%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-122506%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Michael%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt's%20desirably%20to%20have%20some%20rules%20(like%20after%20the%20second%20space%20from%20the%20right%20is%20always%20the%20name)%20and%2For%20predefined%20list%20of%20titles%2C%20etc.%20Fuzzy%20logic%20is%20not%20implemented%20in%20Excel%20directly.%3C%2FP%3E%3CP%3EIt's%20bit%20hard%20to%20have%20common%20rule%20for%3C%2FP%3E%3CP%3E---%3C%2FP%3E%3CP%3EAssociate%20Professor%20Mr%20John%20Lewis%20Smith%20Jr%3C%2FP%3E%3CP%3Eand%3C%2FP%3E%3CP%3EJohn%20Smith%3C%2FP%3E%3CP%3E---%3C%2FP%3E%3CP%3EIf%20the%20rule%20is%20what%20the%20name%20has%20not%20more%203%20separated%20by%20space%20words%20and%20before%20it%20one%20or%20no%20prefix%2C%20prefixes%20could%20be%20defined%20in%20separate%20table%20and%20text%20split%20based%20on%20do%20we%20have%20prefix%20in%20the%20string%20or%20not.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAbove%20i%20assumed%20the%20prefix%2C%20if%20exists%2C%20is%20always%20in%20first%20column%2C%20first%20name%20in%20second%2C%20middle%20name%20if%20any%20in%20third%20and%20last%20name%20in%20forth%20one.%20If%20doesn't%20matter%20-%20that%20will%20be%20easier.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20general%20that's%20good%20job%20for%20Power%20Query%2C%20but%20could%20be%20done%20by%20formulas.%20Here%20is%20also%20better%20to%20know%20is%20your%20data%20organized%20in%20tables%20or%20for%20some%20reasons%20you%20prefer%20not%20to%20use%20them.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Michael Turner
Occasional Visitor

I have a process that i need to repeat on a regular basis during data cleansing and that is to separate each title/name in to it's own column. The list contains, first name, last name, and sometimes middle name and sometimes professional title prefixes. I have listed a couple of example of the data i'm working with. Any help would be greatly appreciated.


_____________________________________________________

Associate Professor Johnathan David-Kerigahan

Dr Jing Broadfoot

Mr Mick Ryan

Dianne Franks

____________________________________________________

 

Cheers Mick

2 Replies

Hi Michael,

 

It's desirably to have some rules (like after the second space from the right is always the name) and/or predefined list of titles, etc. Fuzzy logic is not implemented in Excel directly.

It's bit hard to have common rule for

---

Associate Professor Mr John Lewis Smith Jr

and

John Smith

---

If the rule is what the name has not more 3 separated by space words and before it one or no prefix, prefixes could be defined in separate table and text split based on do we have prefix in the string or not.

 

Above i assumed the prefix, if exists, is always in first column, first name in second, middle name if any in third and last name in forth one. If doesn't matter - that will be easier.

 

In general that's good job for Power Query, but could be done by formulas. Here is also better to know is your data organized in tables or for some reasons you prefer not to use them.

 

 

Michael, just in case here is set of formulas to split names on columns, however no universal one.

https://support.office.com/en-us/article/Split-text-into-different-columns-with-functions-49ec57f9-3...

 

Related Conversations