+ Reply to Thread
Results 1 to 4 of 4

Splitting first and last names

  1. #1
    Registered User
    Join Date
    07-17-2008
    Location
    Albuquerque, NM
    Posts
    3

    Splitting first and last names

    Here's a fun one:

    I've been handed a big excel file that has a lot of names, addresses, city, state, etc. Unfortunately the person who entered all the data neglected to break first and last names into separate columns. Is there some way to do a search and cut, say, looking for the space between the names, to move

    COLUMN 1
    David Thomas

    into

    COLUMN 1 COLUMN 2
    David Thomas

    Any ideas?

    Thanks again folks,

    Darrell Leland

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Hi,

    You can use a FIND() function to detect the position of the space between words, and then slice the string accordingly. Alternatively you could use the Text to Columns functionality to do it for you.

    It also depends on how many parts to a name you have. Are they all just two words names as your example, or could there be three, four or more?

    Rgds

  3. #3
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    199
    Are they all just two words names as your example, or could there be three, four or more?
    Richard's question is a very good one given your scenario, but assuming that your example is true for all instances these formulas should work:

    Column 1:

    =LEFT(A1,FIND(" ",A1)-1)

    Column 2:

    =RIGHT(A1,LEN(A1)-FIND(" ",A1))

    Hope that helps.

  4. #4
    Registered User
    Join Date
    07-17-2008
    Location
    Albuquerque, NM
    Posts
    3

    Thanks

    I had completely forgoten about text to Columns. Thanks guys.

    Darrell Leland

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1