+ Reply to Thread
Results 1 to 3 of 3

VLOOKUP That needs to give result based on a ranking list

  1. #1
    Registered User
    Join Date
    07-19-2011
    Location
    Derby
    MS-Off Ver
    Excel 2003
    Posts
    41

    VLOOKUP That needs to give result based on a ranking list

    Hi All

    I have a database which has a list of referance numbers along with a problem listed next to it. In some cases I may get the same ref number in the database but with a different problem. When i use vlookup i would like to bring back the highest priority ranking problem for that ref number in the list.

    I have attempted to use vlookup and if to no avail

    Please could you help? ive attached a example for you to look at

    Cheers

    Sane

    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: VLOOKUP That needs to give result based on a ranking list

    Assuming that the status rank is always a single number at the start of the string then this should work:

    =INDEX(D:D,MATCH(MIN(INDEX(IFERROR(VALUE(LEFT(D1:D35,(C1:C35=F2))),999),0)),INDEX(IFERROR(VALUE(LEFT(D1:D35,(C1:C35=F2))),999),0),0))

    This is an array formula and must be entered using Ctrl-Shift-Enter, not just enter.

  3. #3
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: VLOOKUP That needs to give result based on a ranking list

    If you have RANKS sorted in A2:A10, try in H2 with CTRL+SHIFT+ENTER, rather than just ENTER

    =INDEX(A$2:A$10,MATCH(1,IF(ISNUMBER(MATCH(A$2:A$10,IF(C$2:C$35=F2,D$2:D$35),0)),1),0))

    Then copy down.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

+ 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