+ Reply to Thread
Results 1 to 5 of 5

Shifting Last Name To Another Column

  1. #1
    Registered User
    Join Date
    06-11-2004
    Posts
    3

    Smile Shifting Last Name To Another Column

    Hi Folks,

    This is an easy one for you but not for me. In a mailing list, I have a large group of names in the "D" column. A sample of records looks like this:

    Ronald S Bradshaw
    Timmy Whitaker
    Travis Camp
    A.L. Handy
    Aaron "Kyle" Sapp
    Adam Mathis
    Addie Roseboro
    Adila Abdul-Karim
    Adria Michelle Walker

    I'm looking to shift just the last name to column "E", leaving the first and possibly middle name/initial behind in column "D". I'd also need to remove the ending space that was originally before the last name. What's the magic formula for this?

    AdGuy

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try the following...

    E1, copied down:

    =RIGHT(A1,LEN(A1)-LARGE(IF(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)=" ",ROW(INDIRECT("1:"&LEN(A1)))),1))

    ...confirmed with CONTROL+SHIFT+ENTER.

    Then, select this new range of cells > Copy > Paste Special > Values > OK.

    In cases where extra spaces may be present, try the following...

    =RIGHT(TRIM(A1),LEN(TRIM(A1))-LARGE(IF(MID(TRIM(A1),ROW(INDIRECT("1:"&LEN(TRIM(A1)))),1)=" ",ROW(INDIRECT("1:"&LEN(TRIM(A1))))),1))

    ...confirmed with CONTROL+SHIFT+ENTER.

    Hope this helps!

    Quote Originally Posted by AdGuy
    Hi Folks,

    This is an easy one for you but not for me. In a mailing list, I have a large group of names in the "D" column. A sample of records looks like this:

    Ronald S Bradshaw
    Timmy Whitaker
    Travis Camp
    A.L. Handy
    Aaron "Kyle" Sapp
    Adam Mathis
    Addie Roseboro
    Adila Abdul-Karim
    Adria Michelle Walker

    I'm looking to shift just the last name to column "E", leaving the first and possibly middle name/initial behind in column "D". I'd also need to remove the ending space that was originally before the last name. What's the magic formula for this?

    AdGuy

  3. #3
    Registered User
    Join Date
    06-11-2004
    Posts
    3

    Still Not Working

    Domenic,

    Thanks for the suggestion. When I tried either of the two formula recommendations, I just got the same name. Any ideas on what I or the recommended formulas might not be doing right?

    AdGuy

  4. #4
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Quote Originally Posted by AdGuy
    Domenic,

    Thanks for the suggestion. When I tried either of the two formula recommendations, I just got the same name. Any ideas on what I or the recommended formulas might not be doing right?

    AdGuy
    You need to confirm the formula with CONTROL+SHIFT+ENTER. That means, after typing out the formula, instead of pressing just ENTER, press the CONTROL and SHIFT keys together, then while they're both pressed, hit the ENTER key. Excel will then place braces {} around the formula, indicating that you've entered the formula correctly.

    Hope this helps!

  5. #5
    Registered User
    Join Date
    06-11-2004
    Posts
    3

    You Were Exactly Right!

    Domenic,

    Thanks for the additional instruction...it's amazing how when I do EXACTLY what you tell me it works like a charm!! A big thanks for both your information and your patience!!

    AdGuy

+ 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