+ Reply to Thread
Results 1 to 2 of 2

Text moving

  1. #1
    Registered User
    Join Date
    10-20-2005
    Posts
    6

    Text moving

    I want to move text thats in the middle of the cell to the begining of the cell...

    Cell A1 Reads "DANIEL & BETTINA SMITH ACCOUNT INFO"

    Cell B1 reads "SMITH"


    Ex. Using cell B1, take the text "SMITH" and move it to the front of the text string while deleting the other "SMITH" in the middle...
    "SMITH, DANIEL & BETTINA SMITH ACCOUNT INFO"

    I want cell A1 or C1 to look like this "SMITH, DANIEL & BETTINA ACCOUNT INFO"

    is this possible???

  2. #2
    bpeltzer
    Guest

    RE: Text moving

    This equation requires a space character to be found after the string in B1...
    =IF(ISNUMBER(FIND(B1&" ",A1)),B1&",
    "&LEFT(A1,FIND(B1,A1)-1)&RIGHT(A1,LEN(A1)-LEN(B1)-FIND(B1,A1)),A1)
    --Bruce


    "azazel" wrote:

    >
    > I want to move text thats in the middle of the cell to the begining of
    > the cell...
    >
    > Cell A1 Reads "DANIEL & BETTINA SMITH ACCOUNT INFO"
    >
    > Cell B1 reads "SMITH"
    >
    >
    > Ex. Using cell B1, take the text "SMITH" and move it to the front of
    > the text string while deleting the other "SMITH" in the middle...
    > "SMITH, DANIEL & BETTINA SMITH ACCOUNT INFO"
    >
    > I want cell A1 or C1 to look like this "SMITH, DANIEL & BETTINA ACCOUNT
    > INFO"
    >
    > is this possible???
    >
    >
    > --
    > azazel
    > ------------------------------------------------------------------------
    > azazel's Profile: http://www.excelforum.com/member.php...o&userid=28250
    > View this thread: http://www.excelforum.com/showthread...hreadid=482849
    >
    >


+ 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