+ Reply to Thread
Results 1 to 4 of 4

highest "priority" among all matched instances (multiple conditions)

  1. #1
    Registered User
    Join Date
    11-14-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    11

    Question highest "priority" among all matched instances (multiple conditions)

    (Pardon my poor English.)

    I have raised a similar question before. (Please check out: http://www.excelforum.com/excel-form...instances.html)

    In the previous case, there is only 1 determining condition. Now if I have multiple conditions, how could I get the results?

    e.g.

    untitled.PNG

    Column A to C are the raw data
    Column G is the priority list
    Column K display the result I want
    K should display the value from column B with the highest priority, matching the values of I and J with those from A and C respectively.

    For example,
    I1 = M, J1 = B
    we go through the raw data and find 2 matching pairs
    (B, S322, M) and (B, G201, M)
    since S322 has a higher priority over G201, K1 would display S322

    What should be the formula in cells in column K in order to get the desired results?
    Thanks in advance.

  2. #2
    Registered User
    Join Date
    10-02-2012
    Location
    Baku
    MS-Off Ver
    Excel 2010
    Posts
    273

    Re: highest "priority" among all matched instances (multiple conditions)

    =INDEX($G$1:$G$5,SMALL(IFERROR(MATCH(IF((I1=$C$1:$C$6)*(J1=$A$1:$A$6),$B$1:$B$6,""),$G$1:$G$5,0),""),1)) cse
    Attached Files Attached Files

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: highest "priority" among all matched instances (multiple conditions)

    hi dyuk, would you mind uploading a sample Excel file next time instead of a picture. otherwise, we have to re-create the picture manually in Excel. here's what you can use:
    Please Login or Register  to view this content.
    paste inside the formula bar & press CTRL + SHIFT + ENTER

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    11-14-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: highest "priority" among all matched instances (multiple conditions)

    Quote Originally Posted by eisayew View Post
    =INDEX($G$1:$G$5,SMALL(IFERROR(MATCH(IF((I1=$C$1:$C$6)*(J1=$A$1:$A$6),$B$1:$B$6,""),$G$1:$G$5,0),""),1)) cse
    thanks again!

    Quote Originally Posted by benishiryo View Post
    hi dyuk, would you mind uploading a sample Excel file next time instead of a picture. otherwise, we have to re-create the picture manually in Excel. here's what you can use:
    Please Login or Register  to view this content.
    paste inside the formula bar & press CTRL + SHIFT + ENTER
    thanks for your advice, i would upload a file instead next time

+ 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