+ Reply to Thread
Results 1 to 5 of 5

Index formula with multiple match criteria

  1. #1
    Registered User
    Join Date
    01-21-2011
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2007
    Posts
    30

    Index formula with multiple match criteria

    I attempted to use some examples of this I found in a thread but cannot seem to get it to work for me. I am attaching a small example of what I am trying to accomplish with the Index formula with multiple match criteria. Any help would be much appreciated, as this is a bit beyond my knowledge.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Index formula with multiple match criteria

    You can use this array* formula in D5:

    =IFERROR(INDEX(CURRSPLIT!$G$1:$G$300,MATCH(1,($A5*1=CURRSPLIT!$E$1:$E$300)*($B5=CURRSPLIT!$B$1:$B$300),0)),"")

    *Note that an array formula needs to be confirmed using the key combination of Ctrl-Shift-Enter (CSE), rather than the usual Enter.

    Then you can copy it down.

    Hope this helps.

    Pete

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Index formula with multiple match criteria

    On reflection, although you indicated only a single required value for column G, I presume you are looking for a formula that can be copied across as well as down. In that case you can use this array* formula in cell D5:

    =IFERROR(INDEX(CURRSPLIT!$G$1:$Q$300,MATCH(1,($A5*1=CURRSPLIT!$E$1:$E$300)*($B5=CURRSPLIT!$B$1:$B$300),0),MATCH(D$4,CURRSPLIT!$G$1:$Q$1,0)),"")

    *Use CSE instead of Enter to confirm, as previously advised.

    then you can copy this across to L5 and down as far as you need to. Note that you don't have NCCT or GRA in row 1 of the CURRSPLIT sheet, so columns F and G are empty.

    Hope this helps.

    Pete

    EDIT: to understand what is happening with this, note that the INDEX function is now looking at a table (columns G to Q of the CURRSPLIT sheet). The first MATCH function is returning the row and the second match function the column within that table where the data should come from.

    Pete
    Last edited by Pete_UK; 12-01-2019 at 06:39 PM.

  4. #4
    Registered User
    Join Date
    01-21-2011
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Index formula with multiple match criteria

    Pete. Thanks, this worked fine. Much appreciated!

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Index formula with multiple match criteria

    Glad to hear it, and thanks for marking the thread as Solved.

    You might also like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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 and match formula with multiple criteria
    By lasyaj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-14-2017, 01:20 AM
  2. Index formula with multiple match criteria (inc min)
    By Aussibuilder50000 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-26-2016, 06:14 AM
  3. Replies: 2
    Last Post: 09-27-2014, 04:34 PM
  4. Index match formula for multiple criteria
    By nellyc in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-03-2014, 12:03 PM
  5. [SOLVED] Index match formula for multiple criteria
    By nellyc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-03-2013, 11:02 AM
  6. Excel 2007 : Index Match Multiple Criteria Formula
    By paddyboy in forum Excel General
    Replies: 17
    Last Post: 03-17-2012, 12:01 AM
  7. Index/Match formula with multiple criteria
    By dta1984 in forum Excel General
    Replies: 7
    Last Post: 11-21-2011, 01:29 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