+ Reply to Thread
Results 1 to 3 of 3

Vlookup for case with identical lookup values?

  1. #1
    Registered User
    Join Date
    05-09-2011
    Location
    Sofia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Vlookup for case with identical lookup values?

    Hi

    Til now I have found many answers here, but this time I am really stuck :/

    I am trying to sort some items but many of them have the same factor. With VLOOKUP it returns only the first value, so I am using the trick with the INDEX and the SMALL formulas (I saw it in some thread here but after that I lost track of it… ), but obviously doing something wrong. Attached you could find sample table with my struggle. If there is different and easier approach leading to the desired result I will be more than happy to see it.
    Any help would be highly appreciated.

    PS. Sorry for breaking Rule 2, I simply thought this doesn't deserve separate thread.
    Attached Files Attached Files
    Last edited by lopata; 05-10-2011 at 08:46 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Vlookup for case with identical lookup values?

    Try:

    =INDEX($B$2:$B$10,SMALL(IF($A$2:$A$10=$E2,ROW($A$2:$A$10)-ROW($A$2)+1),COUNTIF(E$2:E2,E2)))

    confirmed with CTRL+SHIFT+ENTER and copied down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-09-2011
    Location
    Sofia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Vlookup for case with identical lookup values?

    Many, many thanks!
    Have a nice day

+ 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