+ Reply to Thread
Results 1 to 7 of 7

VLOOKUP excel problem

  1. #1
    Registered User
    Join Date
    01-22-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    9

    VLOOKUP excel problem

    I have an Excel homework that my teacher gave.
    basically, i need to so call create a "search" feature such that if a user enter a "rank" number, my formula will provide the name and salary of the employee. i was thinking of using vlookup, but it didn't work. I think the problem may be due to the "rank" column is not in the first column and i'm using a rank function for that column.
    does anyone have any idea how to do this?
    thanks. i'm using excel 2010 btw.
    Last edited by mizacasa; 01-22-2012 at 10:51 PM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: VLOOKUP excel problem

    Maybe look into Index/Match

    http://blog.contextures.com/archives...dex-and-match/
    Last edited by jeffreybrown; 01-22-2012 at 10:12 PM.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    01-22-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: VLOOKUP excel problem

    I tried using that. But i'm not good with that function. Do you have any idea how to create it?

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: VLOOKUP excel problem

    Hello, good morning,

    or Look at this thread for the sample files

    used vlookup in this one:
    =VLOOKUP(--LEFT(J2,4),A1:B100,2,FALSE)

    http://www.excelforum.com/showthread...t=#post2686800

    Cheers,
    vlady
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: VLOOKUP excel problem

    Here is an example...

    I want to return what is in column A by matching the number 4 in column E.

    =INDEX($A$1:$A$16,MATCH(4,$E$1:$E$16,0))

    As you have found out, the Vlookup function is limited in the fact it can only look in one direction, to the right. The Index/Match combination can look both left and right.

  6. #6
    Registered User
    Join Date
    01-22-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: VLOOKUP excel problem

    HEY PEOPLE! THANKS! I'VE DONE IT! I used the INDEX/MATCH function.
    Thanks for all the replies! I am ultimatly delightes right now!

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: VLOOKUP excel problem

    You're very welcome...glad we could help...

    ...but believe me, it only gets better from here

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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