+ Reply to Thread
Results 1 to 3 of 3

Having trouble with advanced INDEX MATCH function

  1. #1
    Registered User
    Join Date
    05-25-2018
    Location
    Fairhope, AL
    MS-Off Ver
    2016
    Posts
    4

    Having trouble with advanced INDEX MATCH function

    Hello Forum, Thank you for reading my first post.

    I have been trying to figure out a particular problem for the better part of the afternoon; here is the challenge:

    I need to pull data from a workbook based on multiple column criteria, as well as a column criteria as well. I have gotten pretty close using INDEX MATCH, however I just cannot seem to quite get it right... The reason there are two column criteria is because column A holds names and each name will repeat multiple times. Column B holds items that also repeat, but never repeat for column A. For example:

    A B
    1 Name1 Item1
    2 Name1 Item2
    3 Name1 Item3
    4 Name2 Item1
    5 Name2 Item2
    6 Name2 Item3

    Now I need to match the exact row based on the unique pair of both columns. Then I need to also match the column that I am finding the value based on its heading. As the user selects criteria in a filters, the table Column headings act like an accordion, so specific columns may jump from column L to Q with one selection. I need to get the number where the unique row that matches given criteria in column A & B intersects with the Column in a specific range that meets given criteria as well. Hopefully this makes sense. Thanks in advance.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,733

    Re: Having trouble with advanced INDEX MATCH function

    Hi RC_Tide17. Welcome to the forum.

    Try array entering this formula as in D2 below and criteria in D1:E1. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

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



    A
    B
    C
    D
    E
    1
    Name2
    Item3
    2
    1
    Name1
    Item1
    6
    3
    2
    Name1
    Item2
    4
    3
    Name1
    Item3
    5
    4
    Name2
    Item1
    6
    5
    Name2
    Item2
    7
    6
    Name2
    Item3
    Dave

  3. #3
    Registered User
    Join Date
    05-25-2018
    Location
    Sydney
    MS-Off Ver
    2013
    Posts
    14

    Re: Having trouble with advanced INDEX MATCH function

    Index and Match with multiple row criteria.PNG

    Try array formula (Control + Shift + Enter) entered into yellow cell in the attached image.

    =INDEX($C$2:$D$7,MATCH(1,(G2=A2:A7)*(G3=B2:B7),0),MATCH(G4,C1:D1,0))

    It is the modification of Dave's formula to enable you to select a column from which you can pick up value. Thank you Dave

    Kind regards

    Saba

+ 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] Advanced Match Index Function
    By takeawalkk in forum Excel General
    Replies: 3
    Last Post: 08-22-2017, 07:57 AM
  2. [SOLVED] Advanced Match & Index
    By Ahmed Al-Boghdady in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-09-2017, 04:07 AM
  3. Advanced If or Match(index) vba... not really sure.
    By TexasBobcat in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-04-2015, 03:09 PM
  4. Replies: 1
    Last Post: 06-10-2015, 12:56 PM
  5. [SOLVED] Advanced Match Help (possibly Index Match)
    By dfxryanjr in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-08-2013, 09:13 AM
  6. Index,match function trouble with formula
    By tuckerbunch in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-01-2013, 06:25 PM
  7. INDEX(...MATCH(IF...))) Function trouble
    By reaper_2 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-25-2011, 02:19 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