+ Reply to Thread
Results 1 to 10 of 10

More help please with contact list....

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-13-2006
    Posts
    400
    Quote Originally Posted by Maistrye
    This is useful, but you never indicated whether or not what MDubbelboer suggested was possible, such as the following:

    John A. & Jane A. Van Doe, where Van Doe is the last name.
    assuming last names never have a space in them we can return the string to the right of the last space as the last name, and follow with the first name with this monstrosity courtesy of scott:
    =RIGHT(A1,LEN(A1)-FIND("~",SUBSTITUTE(A1," ","~",LEN(A1)-LEN(SUBSTITUTE(A1," ","")))))&", "&LEFT(A1,FIND("~",SUBSTITUTE(A1," ","~",LEN(A1)-LEN(SUBSTITUTE(A1," ","")))))

  2. #2
    Registered User
    Join Date
    11-07-2006
    Posts
    5
    No names are separate currently but it is a possibility in the future. This last sum is not working for me.

  3. #3
    Registered User
    Join Date
    11-07-2006
    Posts
    5

    NEVERMIND! Thanks Scott....

    Nevermind, it works great. Thanks for all your help everyone!

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Thumbs up

    Quote Originally Posted by ckluge
    Nevermind, it works great. Thanks for all your help everyone!
    Hi ckluge,

    Never give up, there is always an answer

    Your examples in A1:A3

    John A. & Jane A. Doe
    John & Jane Doe
    John A. Jr. & Jane Doe

    In B1 put this as an array formula, copy it, but enter it as Ctrl Shift Enter

    =RIGHT(A1,LEN(A1)-MAX(ROW(INDIRECT("1:"&LEN(A1))) *(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)=" ")))

    Then in C1, put this, but not as an array

    =B1&", "&LEFT(A1,LEN(A1)-LEN(B1))

    Result

    Doe, John A. & Jane A.
    Doe, John & Jane
    Doe, John A. Jr. & Jane

    oldchippy

  5. #5
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Oldchippy,

    You are a Saint ... !!!

    Cheers
    Carim

+ 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