+ Reply to Thread
Results 1 to 3 of 3

Using index match based on two match criteria in different columns

  1. #1
    Registered User
    Join Date
    06-28-2018
    Location
    USA
    MS-Off Ver
    2010
    Posts
    19

    Using index match based on two match criteria in different columns

    Hi everyone. I'm trying to use index match based on two criteria but aren't entirely sure how to go about it.

    I have a spread sheet that has multiple different sizes with the same name. What I am looking for is something that will search for the name/value in column A then search for the second value in column B and if it doesn't match both values continue looking through the spreadsheet until it finds the correct row. Then use the index function to return the value in column 3 of that row. Example attached

    In the example I am looking for the values in E5 and F5 in column A and B respectively. If found it should return the value in G5.

    Any help is appreciated.

    Thanks,
    LearningByError.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    06-28-2018
    Location
    USA
    MS-Off Ver
    2010
    Posts
    19

    Re: Using index match based on two match criteria in different columns

    I've actually just figured this out, it was much easier than expected. I used the formula below on my sheet.

    =IF(MATCH(F4,Sheet4!$A$2:$A$552,0),INDEX(Sheet4!$E$2:$E$552,MATCH(G4,Sheet4!$I$2:$I$552,0)),"").

    I looked for a match based on the name first or value (F4), and If there was a Match, To match a second value (G4), and then Index to return the value on the same row of both the match in Column E. I'm honestly confused myself on how this works out and isn't returning occasional errors.

    If anyone has a better way I'm game to see it.

    Thanks,
    LearningByError.

  3. #3
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,298

    Re: Using index match based on two match criteria in different columns

    I propose such formulas
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. [SOLVED] Index/Match when the Match criteria is based on a second table
    By Plummet in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-10-2017, 01:02 PM
  2. Replies: 4
    Last Post: 04-14-2017, 07:47 PM
  3. VBA Code for Index/Match/Match to input into excel based on 2 criteria inside form
    By Carl Fisher in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2017, 12:11 PM
  4. Index/Match but the second match criteria >0 regarding 3 columns
    By Ben2487 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-29-2014, 12:08 PM
  5. Index Match - 1 criteria over 2 columns
    By david0985 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-28-2014, 03:34 PM
  6. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  7. Index Match based on 2 Criteria only returning 1 match
    By stsanders22 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-04-2012, 11:26 PM

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