+ Reply to Thread
Results 1 to 7 of 7

Right and Left Formula

  1. #1
    Raymond
    Guest

    Right and Left Formula

    Hello all,

    I am trying to convert the text in cell A2 which is LAST NAME, FIRST NAME to
    convert to FIRST NAME LAST NAME - No comma. I got pretty far with the
    formula below.

    This is what it looks like: Tackett, Raymond
    This is what I want it to look like: Raymond Tackett
    This is what the formula below makes it look like: RaymondTackett,

    =(RIGHT(A2,LEN(A2)-FIND(" ",A2))) & (LEFT(A2,FIND(" ",A2,1)))

    Thanks,

    Raymond

  2. #2
    Domenic
    Guest

    Re: Right and Left Formula

    Try...

    =RIGHT(A2,LEN(A2)-(FIND(",",A2)+1))&" "&LEFT(A2,FIND(",",A2)-1)

    Hope this helps!

    In article <834D638E-EAAF-4EC3-BB0D-E0B9D6F868D3@microsoft.com>,
    "Raymond" <Raymond@discussions.microsoft.com> wrote:

    > Hello all,
    >
    > I am trying to convert the text in cell A2 which is LAST NAME, FIRST NAME to
    > convert to FIRST NAME LAST NAME - No comma. I got pretty far with the
    > formula below.
    >
    > This is what it looks like: Tackett, Raymond
    > This is what I want it to look like: Raymond Tackett
    > This is what the formula below makes it look like: RaymondTackett,
    >
    > =(RIGHT(A2,LEN(A2)-FIND(" ",A2))) & (LEFT(A2,FIND(" ",A2,1)))
    >
    > Thanks,
    >
    > Raymond


  3. #3
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    You were close... try this:

    =(RIGHT(G4,LEN(G4)-FIND(" ",G4))) &" "& (LEFT(G4,FIND(",",G4,1)-1))

    Good Luck
    Bruce
    The older I get, the better I used to be.
    USA

  4. #4
    Raymond
    Guest

    Re: Right and Left Formula

    This did make them in the correct format but it is skipping every other cell.
    Awesome job though! It is changing A2, A4, A6, etc...

    "Domenic" wrote:

    > Try...
    >
    > =RIGHT(A2,LEN(A2)-(FIND(",",A2)+1))&" "&LEFT(A2,FIND(",",A2)-1)
    >
    > Hope this helps!
    >
    > In article <834D638E-EAAF-4EC3-BB0D-E0B9D6F868D3@microsoft.com>,
    > "Raymond" <Raymond@discussions.microsoft.com> wrote:
    >
    > > Hello all,
    > >
    > > I am trying to convert the text in cell A2 which is LAST NAME, FIRST NAME to
    > > convert to FIRST NAME LAST NAME - No comma. I got pretty far with the
    > > formula below.
    > >
    > > This is what it looks like: Tackett, Raymond
    > > This is what I want it to look like: Raymond Tackett
    > > This is what the formula below makes it look like: RaymondTackett,
    > >
    > > =(RIGHT(A2,LEN(A2)-FIND(" ",A2))) & (LEFT(A2,FIND(" ",A2,1)))
    > >
    > > Thanks,
    > >
    > > Raymond

    >


  5. #5
    Raymond
    Guest

    Re: Right and Left Formula

    NEVERMIND. For some reason when I used your formula, it merged and wrap text
    on every other cell. I unmerged them and it works now. APPRECIATE IT!

    "Domenic" wrote:

    > Try...
    >
    > =RIGHT(A2,LEN(A2)-(FIND(",",A2)+1))&" "&LEFT(A2,FIND(",",A2)-1)
    >
    > Hope this helps!
    >
    > In article <834D638E-EAAF-4EC3-BB0D-E0B9D6F868D3@microsoft.com>,
    > "Raymond" <Raymond@discussions.microsoft.com> wrote:
    >
    > > Hello all,
    > >
    > > I am trying to convert the text in cell A2 which is LAST NAME, FIRST NAME to
    > > convert to FIRST NAME LAST NAME - No comma. I got pretty far with the
    > > formula below.
    > >
    > > This is what it looks like: Tackett, Raymond
    > > This is what I want it to look like: Raymond Tackett
    > > This is what the formula below makes it look like: RaymondTackett,
    > >
    > > =(RIGHT(A2,LEN(A2)-FIND(" ",A2))) & (LEFT(A2,FIND(" ",A2,1)))
    > >
    > > Thanks,
    > >
    > > Raymond

    >


  6. #6
    Harlan Grove
    Guest

    Re: Right and Left Formula

    Domenic wrote...
    >Try...
    >
    >=RIGHT(A2,LEN(A2)-(FIND(",",A2)+1))&" "&LEFT(A2,FIND(",",A2)-1)


    You could dispense with the unnecessary LEN call by using MID

    =MID(A2,FIND(",",A2)+2,1024)&" "&LEFT(A2,FIND(",",A2)-1)

    or REPLACE

    =REPLACE(A2,1,FIND(",",A2)+1,"")&" "&LEFT(A2,FIND(",",A2)-1)


  7. #7
    Domenic
    Guest

    Re: Right and Left Formula

    Thanks Harlan! Much appreciated!

    In article <1117045905.713882.205040@g47g2000cwa.googlegroups.com>,
    "Harlan Grove" <hrlngrv@aol.com> wrote:

    > Domenic wrote...
    > >Try...
    > >
    > >=RIGHT(A2,LEN(A2)-(FIND(",",A2)+1))&" "&LEFT(A2,FIND(",",A2)-1)

    >
    > You could dispense with the unnecessary LEN call by using MID
    >
    > =MID(A2,FIND(",",A2)+2,1024)&" "&LEFT(A2,FIND(",",A2)-1)
    >
    > or REPLACE
    >
    > =REPLACE(A2,1,FIND(",",A2)+1,"")&" "&LEFT(A2,FIND(",",A2)-1)


+ 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