+ Reply to Thread
Results 1 to 4 of 4

Index and Match with an Or

  1. #1
    Registered User
    Join Date
    06-04-2020
    Location
    Dublin,Ireland
    MS-Off Ver
    2010
    Posts
    4

    Index and Match with an Or

    Im trying to do an index and match function with multiple criteria which is easy enough but how do i put in an or function if my answer can also match another criteria

    Thanks

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

    Re: Index and Match with an Or

    INDEX(Range1,match(1,((Range2=X)+(Range3=Y)),0))

    It might need CTRL-SHIFT-ENTER. If you despise array formule, you can try:

    INDEX(Range1,match(1,index(((Range2=X)+(Range3=Y)),0),0))

    Failing that... sample Excel sheet please.
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    06-04-2020
    Location
    Dublin,Ireland
    MS-Off Ver
    2010
    Posts
    4

    Re: Index and Match with an Or

    As you can see from my attachment im looking to find anything matching A18 in column B if it is matching A2 or A3.
    Attached Files Attached Files

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

    Re: Index and Match with an Or

    This is why sample sheets are always helpful... we can spot a set of missing parentheses more easily (well , I can...).

    The formula also now just requires ENTER.

    =IFERROR(INDEX($E$6:$E$13,MATCH(1,INDEX(($B$6:$B$13=A18)*(($A$6:$A$13=$A$2)+($A$6:$A$13=$A$3)),0),0),1),"")
    Attached Files Attached Files

+ 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 function vs index match vba type mismatch
    By johnstylez in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-14-2022, 03:29 PM
  2. [SOLVED] INDEX+MATCH instead of VLOOKUP+MATCH, why is INDEX a better choice and how to re-write?
    By Renejorgensen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2016, 10:54 AM
  3. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  4. [SOLVED] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  5. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  6. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  7. Replies: 3
    Last Post: 05-02-2013, 01:31 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