Consulting

Results 1 to 5 of 5

Thread: Solved: Lookup and use left characters

  1. #1
    VBAX Tutor
    Joined
    Jul 2010
    Posts
    225
    Location

    Solved: Lookup and use left characters

    Hi, I have a lenghty list of first names in column A and last names in column C. In column A I have the formula

    =TRIM(B1&" "&LEFT(C1,2))

    This gives me as example

    John Do

    I need this to differientiate the person if there is more than one John. What I want is to...

    1. Only use the formula if lookup finds more than one John as eg..

    2. If it finds more than one John D, then continue with the next character to differentiat between them. EG. John Doe, John Doea may need 4 characters to tell the diff.

    All help is appreciated thanks...

  2. #2
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,720
    Location
    If you had for example:
    John Smith
    John Doe
    John Doea

    would you want returned:
    John
    John D
    John Do

    or:

    John
    John Doe
    John Doea
    Be as you wish to seem

  3. #3
    VBAX Tutor
    Joined
    Jul 2010
    Posts
    225
    Location
    Hi thanks for your help..

    I would like it to return

    John S
    John Doe
    John Doea

  4. #4
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,720
    Location
    This seems to work (albeit very limited testing) using helper columns.
    Attached Files Attached Files
    Be as you wish to seem

  5. #5
    VBAX Tutor
    Joined
    Jul 2010
    Posts
    225
    Location
    Great solution. Thanks very much.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •