+ Reply to Thread
Results 1 to 3 of 3

Reversing Names and Removing commas and Middle Initital

Hybrid View

  1. #1
    Registered User
    Join Date
    02-18-2022
    Location
    Sydney, New South Wales
    MS-Off Ver
    Office 365
    Posts
    37

    Reversing Names and Removing commas and Middle Initital

    Hi All

    I am seeking a single formula to transpose name formate and remove comma and middle initial

    Current State Example Cell J27
    Simpson, Peter R
    Van Berg, Robin M
    De Boer, Peter B
    O'Brien, Roger T

    Desired State
    Peter Simpson
    Robin Van Berg
    Peter De Boer
    Roger O'Brien

    Currently I can do this with two steps
    Step 1 referencing J27: =MID(J27&" "&J27,FIND(", ",J27)+2,LEN(J27)-1)
    Step 2 referencing D27: =LEFT(D27,FIND(" ",D27))&TRIM(RIGHT(SUBSTITUTE(D27," ",REPT(" ",99)),99))

    Is there a way to combine the two steps or replace with a single step?
    Last edited by GWCollo; 02-20-2022 at 02:02 AM.

  2. #2
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,092

    Re: Reversing Names and Removing commas and Middle Initital

    try replacing every occurrence of "D27" with the formula that references J27.

    the formula will end up being quite long.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,640

    Re: Reversing Names and Removing commas and Middle Initital

    Like this:

    =TRIM(LEFT(SUBSTITUTE(MID(A1,FIND(",",A1)+2,99)," ",REPT(" ",99)),98))&" "&LEFT(A1,FIND(",",A1)-1)

    where A1 contains the name.
    Attached Files Attached Files
    Last edited by AliGW; 02-19-2022 at 03:00 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Reversing and removing numbers from one cell to another
    By ExcelOwly in forum Excel General
    Replies: 4
    Last Post: 01-31-2019, 06:40 AM
  2. Removing Middle names and other junk from list
    By jonmmarg600 in forum Excel General
    Replies: 7
    Last Post: 03-08-2015, 09:30 PM
  3. Replies: 2
    Last Post: 06-20-2012, 04:41 PM
  4. Reversing first and last names for Alphabetizing
    By RayGuy in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-14-2011, 04:39 PM
  5. Replies: 2
    Last Post: 05-21-2010, 10:07 PM
  6. help in reversing names
    By tryer in forum Excel General
    Replies: 5
    Last Post: 01-21-2007, 01:26 PM
  7. Reversing First and Last Names
    By excelnewbie in forum Excel General
    Replies: 5
    Last Post: 06-10-2005, 11:05 AM

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