+ Reply to Thread
Results 1 to 6 of 6

Right and Left formula

Hybrid View

  1. #1
    Registered User
    Join Date
    11-17-2011
    Location
    Shropshire
    MS-Off Ver
    Excel version 2102
    Posts
    85

    Right and Left formula

    ColumnA, ColumnB
    Last name, firstname
    test, test1
    bob, bob2

    How do I get the above to show first name last name?

    so far i've got:

    =LEFT(A1, SEARCH(" ",A1,1))
    =RIGHT(A1,LEN(A1)-SEARCH(" ",A1,1))

    how ever it is showing the comma and I don't want that.

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Right and Left formula

    Hi try this
    =LEFT(A1, SEARCH(" ",A1,1)-2)
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,677

    Re: Right and Left formula

    For last name try

    =REPLACE(A1,1,FIND(" ",A1),"")
    Audere est facere

  4. #4
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    876

    Re: Right and Left formula

    =left(a2,find(" ",a2,1)-2)
    Last edited by galvinpaddy; 06-20-2012 at 08:48 AM.

  5. #5
    Registered User
    Join Date
    11-17-2011
    Location
    Shropshire
    MS-Off Ver
    Excel version 2102
    Posts
    85

    Re: Right and Left formula

    Thanks to all who replied.

    Galvinpaddy i've gone with yours as it works for what i'm after.

    Tom1977 - it seemed to miss out the last letter the name

    daddylonglegs - It brought the first name out great but the comma I was having probs with seemed to attached it to the last name.

    Thanks to all who replied.
    x

  6. #6
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    876

    Re: Right and Left formula

    You are welcome, happy to help

    galvinpaddy
    (please click the star to add rep) many thanks.

+ 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