Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Splitting names from cells
My first question to the hordes of folks better equipped to answer than the people around me. I'm a policy advisor and I only use Excel and Access as they relate to research. I'm trying to figure out if there is a method for splitting first and last names from a cell where both are contained. We have a huge fleet database with thousands of operator names, but when some moron first set up the system, they put entire name (JOHN A DOE) in one cell. Is there a way I can search for the string following the final space, or some such thing, so I can separate the names? Thanks. -- GoesLikeStink ------------------------------------------------------------------------ GoesLikeStink's Profile: http://www.excelforum.com/member.php...o&userid=25732 View this thread: http://www.excelforum.com/showthread...hreadid=391447 |
#2
|
|||
|
|||
=LEFT(A1,FIND("^^",SUBSTITUTE(A1," ","^^",LEN(A1)-LEN(SUBSTITUTE(A1,"
",""))))-1) and =RIGHT(A1,LEN(A1)-FIND("^^",SUBSTITUTE(A1," ","^^",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))) -- HTH RP (remove nothere from the email address if mailing direct) "GoesLikeStink" wrote in message news:GoesLikeStink.1sybqa_1122674704.7057@excelfor um-nospam.com... My first question to the hordes of folks better equipped to answer than the people around me. I'm a policy advisor and I only use Excel and Access as they relate to research. I'm trying to figure out if there is a method for splitting first and last names from a cell where both are contained. We have a huge fleet database with thousands of operator names, but when some moron first set up the system, they put entire name (JOHN A DOE) in one cell. Is there a way I can search for the string following the final space, or some such thing, so I can separate the names? Thanks. -- GoesLikeStink ------------------------------------------------------------------------ GoesLikeStink's Profile: http://www.excelforum.com/member.php...o&userid=25732 View this thread: http://www.excelforum.com/showthread...hreadid=391447 |
#3
|
|||
|
|||
Bob Using your formulas on this example John A Doe results in John A and Doe, is it possible to split it to show John / A / Doe in 3 separate cells If possible could you explain what the formula is doing, I understand LEFT and LEN etc but don't understand the use of ^^ Thanks Paul -- Paul Sheppard ------------------------------------------------------------------------ Paul Sheppard's Profile: http://www.excelforum.com/member.php...o&userid=24783 View this thread: http://www.excelforum.com/showthread...hreadid=391447 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
trying to create an (almost) circular formula between cells and data validated cells with lists | Excel Worksheet Functions | |||
Unlocking Cells when a worksheet is protected... | Excel Discussion (Misc queries) | |||
Help adding text values | Excel Worksheet Functions | |||
Convert data type of cells to Text,Number,Date and Time | Excel Worksheet Functions | |||
copy group of cells to another group of cells using "IF" in third | Excel Worksheet Functions |