+ Reply to Thread
Results 1 to 5 of 5

moving specific text within a cell

  1. #1
    Registered User
    Join Date
    07-06-2010
    Location
    Tennessee
    MS-Off Ver
    Excel 2003
    Posts
    20

    Exclamation moving specific text within a cell

    I have a bunch of cells within a column and need to move the word "TRUST" to it's appropriate location within it's cell.

    Example:
    BARNES LENNY R TRUST: Should be LENNY R BARNES TRUST
    CRAMER LIVING TRUST: this is correct
    HOPPER FAMILY TRUST: this is correct
    LEVENSON A E & F F TRUST: Should be A E & F F LEVENSON TRUST
    MORRIS RANDALL D TRUST: Should be RANDALL D MORRIS TRUST
    FERGUSON JACQUELYN K TRUST: Should be JACQUELYN K FERGUSON TRUST
    MONTALBANO FAMILY TRUST

    Is there a way to do this? I have thousands to correct.

    Any help is greatly appreciated
    Attached Files Attached Files

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: moving specific text within a cell

    I think you will find the answer to this is no.

    How can we tell the difference between first name and second name?
    MORRIS RANDALL & RANDALL MORRIS are both valid, in the UK at least.

    Does your workbook have any further data that might help with this problem?

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: moving specific text within a cell

    well making some massive assumptions ,like if it contains the words living or family nothing changes
    try
    =IF(OR(ISNUMBER(SEARCH("FAMILY",A1)),ISNUMBER(SEARCH("LIVING",A1))),A1,TRIM(MID(LEFT(A1,LEN(A1)-6),FIND(" ",LEFT(A1,LEN(A1)-6))+1,255))&" "&LEFT(LEFT(A1,LEN(A1)-6),FIND(" ",LEFT(A1,LEN(A1)-6))-1))&" TRUST"
    Last edited by martindwilson; 07-08-2010 at 05:06 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    07-06-2010
    Location
    Tennessee
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: moving specific text within a cell

    Thank you so much - Your if statement works perfectly!!!!

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: moving specific text within a cell

    Hi Martin,

    I see you've got your crystal ball back from the optician! ... ...

    Cheers
    Last edited by Marcol; 07-08-2010 at 09:34 AM.

+ 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