+ Reply to Thread
Results 1 to 6 of 6

Searching Names

  1. #1
    Registered User
    Join Date
    04-26-2005
    Posts
    43

    Searching Names

    Here is the problem that I am having. I have 50 employees and I have three columns with 'employee #', 'Last Name', and 'First Name'.

    A B C
    Emp# Last First
    1 Smith John
    2 Doe Jane
    . . .
    . . .
    . . .

    I want to set up a formula so that when I input the number "1" on cell D1, "Smith" will populate E1, and "John" will populate F1. And if I were to input "2" in cell D1, "Doe" will populate E1, and "Jane" will populate F1. Thank you very much.

  2. #2
    Forum Contributor
    Join Date
    06-23-2004
    Location
    Houston, TX
    Posts
    571
    Quote Originally Posted by exsam21
    Here is the problem that I am having. I have 50 employees and I have three columns with 'employee #', 'Last Name', and 'First Name'.

    A B C
    Emp# Last First
    1 Smith John
    2 Doe Jane
    . . .
    . . .
    . . .

    I want to set up a formula so that when I input the number "1" on cell D1, "Smith" will populate E1, and "John" will populate F1. And if I were to input "2" in cell D1, "Doe" will populate E1, and "Jane" will populate F1. Thank you very much.
    ASSUME that your table range is A1:C50, enter this formula in:

    Cell E1: =vlookup(D1,A1:C50,2,0)

    Cell F1: =vlookup(D1,A1:C50,3,0)

    Regards.
    BenjieLop
    Houston, TX

  3. #3
    Registered User
    Join Date
    04-26-2005
    Posts
    43

    #n/a

    #N/A is what I am getting. I am not sure why.

  4. #4
    Registered User
    Join Date
    04-26-2005
    Posts
    43

    Nevermind, Thanks Much!!!

    Nevermind the last message. I got it now. Thank you so very much.

  5. #5
    L. Howard Kittle
    Guest

    Re: Searching Names

    In E1 enter =VLOOKUP(D1,A2:C10,2,0)
    In F1 enter =VLOOKUP(D1,A2:C10,3,0)

    HTH
    Regards,
    Howard

    "exsam21" <exsam21.21ss33_1137532548.1374@excelforum-nospam.com> wrote in
    message news:exsam21.21ss33_1137532548.1374@excelforum-nospam.com...
    >
    > Here is the problem that I am having. I have 50 employees and I have
    > three columns with 'employee #', 'Last Name', and 'First Name'.
    >
    > A B C
    > Emp# Last First
    > 1 Smith John
    > 2 Doe Jane
    > . . .
    > . . .
    > . . .
    >
    > I want to set up a formula so that when I input the number "1" on cell
    > D1, "Smith" will populate E1, and "John" will populate F1. And if I
    > were to input "2" in cell D1, "Doe" will populate E1, and "Jane" will
    > populate F1. Thank you very much.
    >
    >
    > --
    > exsam21
    > ------------------------------------------------------------------------
    > exsam21's Profile:
    > http://www.excelforum.com/member.php...o&userid=22666
    > View this thread: http://www.excelforum.com/showthread...hreadid=502216
    >




  6. #6
    L. Howard Kittle
    Guest

    Re: Searching Names

    >#N/A is what I am getting. I am not sure why.

    Make sure the lookup number, 1, 2, 3 etc in column A is really a number.
    Check for leading or trailing spaces. If the numbers are to the left in the
    cell in column A, they are text and the number in D1 is a real number which
    will return #N/A.

    HTH
    Regards,
    Howard

    "exsam21" <exsam21.21ss33_1137532548.1374@excelforum-nospam.com> wrote in
    message news:exsam21.21ss33_1137532548.1374@excelforum-nospam.com...
    >
    > Here is the problem that I am having. I have 50 employees and I have
    > three columns with 'employee #', 'Last Name', and 'First Name'.
    >
    > A B C
    > Emp# Last First
    > 1 Smith John
    > 2 Doe Jane
    > . . .
    > . . .
    > . . .
    >
    > I want to set up a formula so that when I input the number "1" on cell
    > D1, "Smith" will populate E1, and "John" will populate F1. And if I
    > were to input "2" in cell D1, "Doe" will populate E1, and "Jane" will
    > populate F1. Thank you very much.
    >
    >
    > --
    > exsam21
    > ------------------------------------------------------------------------
    > exsam21's Profile:
    > http://www.excelforum.com/member.php...o&userid=22666
    > View this thread: http://www.excelforum.com/showthread...hreadid=502216
    >




+ 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