+ Reply to Thread
Results 1 to 9 of 9

reorganize within one cell

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

    reorganize within one cell

    I have a need to move the suffix (ex: Jr) to the end of names within a list samples of names:

    WALTER J SR HARRISON
    CHARLES C JR HART
    JOHN E JR HART
    CLARENCE LEO JR HARTWICH

    The amount of first/middle/initials that comes before varies.

    I'd appreciate the help.
    Last edited by Rnash; 07-11-2010 at 05:32 PM.

  2. #2
    Registered User
    Join Date
    06-02-2010
    Location
    Grand Rapids, Michigan
    MS-Off Ver
    Excel 2003
    Posts
    64

    Re: reorganize within one cell

    Im not sure if it will work but you my be able to do a find and replace
    something like

    Find "*"&" "&"*"&" "&"jr"&" "&"*"
    Replace "*"&" "&"*"&" "&"*"&"jr"

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

    Re: reorganize within one cell

    No luck with that, but thanks for trying.

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: reorganize within one cell

    Assuming that your original list is in column A, try pasting the following into B1 and dragging down.

    Please Login or Register  to view this content.
    Martin

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: reorganize within one cell

    Is the last name always only one name? If not, this is going to be difficult.

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

    Re: reorganize within one cell

    Works perfectly - thanks sooooo much!

  7. #7
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: reorganize within one cell

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  8. #8
    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: reorganize within one cell

    A bit late but another way might be

    Please Login or Register  to view this content.
    Assuming all data is upper case.
    Last edited by Marcol; 07-11-2010 at 06:14 AM.

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

    Re: reorganize within one cell

    and a bit shorter still
    =IF(ISERROR(SEARCH(" ?r ",A1)),A1,REPLACE(A1,SEARCH(" ?r ",A1),3,"")&" "&MID(A1,SEARCH(" ?r ",A1)+1,2))
    "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

+ 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