+ Reply to Thread
Results 1 to 7 of 7

Lookup values with multiple criteria

  1. #1
    Registered User
    Join Date
    09-13-2015
    Location
    Bengaluru, KA, India
    MS-Off Ver
    Home & Student 2021
    Posts
    36

    Lookup values with multiple criteria

    Sir,
    I'm trying to give two criteria to match my data. But i'm unable to.
    I have attached the picture.
    Screenshot 2022-02-04 150056.png

    I want the data that is in I2,J2 and K2.

    Would appreciate someone guide me.
    Thank you.
    Last edited by Glenn Kennedy; 02-04-2022 at 05:53 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,557

    Re: multiple criteria

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,419

    Re: multiple criteria

    For Excel 2010+

    =IFERROR(AGGREGATE(14,6,B$2:B$10/($A$2:$A$10=$H2),1),"")

    BtW, your title is a bit weak. Since you're an infrequent user of the site, I have changed it for you.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    09-13-2015
    Location
    Bengaluru, KA, India
    MS-Off Ver
    Home & Student 2021
    Posts
    36

    Re: multiple criteria

    Thank You Glenn Kennedy and AliGW. Sorry about the title and attachement.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,419

    Re: Lookup values with multiple criteria

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,419

    Re: Lookup values with multiple criteria

    You sent me a PM requesting an explanation:

    =IFERROR(AGGREGATE(14,6,B$2:B$10/($A$2:$A$10=$H2),1),"")

    Red: where this criterion is met in A2:A10
    Cyan: retun these values
    Green return the largest (the 1 at the end) one (change to 2 for second largest, etc)
    Black, iferror return a blank.

    That's it...

    Ypu can also use Formula/formula auditing/evaluate formula to watch Excel proceed step-by-step.

  7. #7
    Registered User
    Join Date
    09-13-2015
    Location
    Bengaluru, KA, India
    MS-Off Ver
    Home & Student 2021
    Posts
    36

    Re: Lookup values with multiple criteria

    Quote Originally Posted by Glenn Kennedy View Post
    You sent me a PM requesting an explanation:

    =IFERROR(AGGREGATE(14,6,B$2:B$10/($A$2:$A$10=$H2),1),"")

    Red: where this criterion is met in A2:A10
    Cyan: retun these values
    Green return the largest (the 1 at the end) one (change to 2 for second largest, etc)
    Black, iferror return a blank.

    That's it...

    Ypu can also use Formula/formula auditing/evaluate formula to watch Excel proceed step-by-step.
    Thank you sir Glenn Kennedy.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 14
    Last Post: 06-07-2021, 11:31 AM
  2. Replies: 2
    Last Post: 12-27-2020, 04:10 AM
  3. [SOLVED] Lookup multiple criteria in multiple columns in multiple rows; return true if exists
    By ufdlim in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-07-2019, 02:03 PM
  4. Replies: 9
    Last Post: 07-23-2015, 01:21 PM
  5. Replies: 2
    Last Post: 05-26-2015, 07:29 PM
  6. [SOLVED] countifs statement with multiple criteria for multiple criteria ranges
    By mcdermott2 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-07-2015, 11:48 AM
  7. [SOLVED] UDF for sum of multiple criteria in multiple columns and single criteria in multiple colum
    By Ganesh7299 in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 11-22-2013, 04:26 AM

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