+ Reply to Thread
Results 1 to 3 of 3

how to flip text from a cell

  1. #1
    Registered User
    Join Date
    02-17-2005
    Posts
    8

    how to flip text from a cell

    hello, would anyone know if there is a way to take a column of cells containing text formatted like...

    "lastname, firstname"

    and have it remove the comma and display the text in the next column of cells flipped like this...

    "firstname lastname"

    or do the exact reverse.

    I have a large database of names that I need to convert to the same format for lookups, and I am looking to save time editing several hundered names

  2. #2
    Registered User
    Join Date
    09-15-2003
    Location
    Pakistan
    Posts
    12
    Hie

    try the following ...

    If you have a space after the comma...

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

    If you dont have a space after the comma...
    =RIGHT(A2,LEN(A2)-FIND(",",A2,1)) & " " & LEFT(A2,FIND(",",A2,1)-1)

    Hope that helps.

    Regards
    Asim

  3. #3
    Registered User
    Join Date
    02-17-2005
    Posts
    8

    Big Thanks!

    Thank you! It works perfect!

    devbox (Dave)

+ 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