+ Reply to Thread
Results 1 to 3 of 3

Separating Text strings.

  1. #1
    Registered User
    Join Date
    10-12-2005
    Posts
    34

    Separating Text strings.

    Is it possible to separate a name in one cell such as John Smith in A1 to John in cell B1 and Smith in cell C1.

    I read that by entering =LEFT(A1,FIND("",A1)) into B1 and =MID(A1,FIND("",A1)+1,LEN(A1)) into C1 that would do it. However that returns “J” in cell B1 and “ohn Smith” in C1

    Specifying the number of characters for the first string would not work on a list of names were the first string varies in length, so you need a formula that takes everything before the first space as the first string. Is it possible?

  2. #2
    Nick Hodge
    Guest

    Re: Separating Text strings.

    Quaisne

    You need a space between your occurrences of "", so " "

    --
    HTH
    Nick Hodge
    Microsoft MVP - Excel
    Southampton, England
    www.nickhodge.co.uk
    [email protected]HIS


    "Quaisne" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Is it possible to separate a name in one cell such as John Smith in A1
    > to John in cell B1 and Smith in cell C1.
    >
    > I read that by entering =LEFT(A1,FIND("",A1)) into B1 and
    > =MID(A1,FIND("",A1)+1,LEN(A1)) into C1 that would do it. However that
    > returns “J” in cell B1 and “ohn Smith” in C1
    >
    > Specifying the number of characters for the first string would not work
    > on a list of names were the first string varies in length, so you need a
    > formula that takes everything before the first space as the first
    > string. Is it possible?
    >
    >
    > --
    > Quaisne
    > ------------------------------------------------------------------------
    > Quaisne's Profile:
    > http://www.excelforum.com/member.php...o&userid=28052
    > View this thread: http://www.excelforum.com/showthread...hreadid=482289
    >




  3. #3
    Registered User
    Join Date
    10-12-2005
    Posts
    34

    strings

    So simple yet it makes the difference. Thanks for that.

+ 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