+ Reply to Thread
Results 1 to 12 of 12

Using Index with multiple OR criteria

  1. #1
    Registered User
    Join Date
    07-04-2019
    Location
    MN, USA
    MS-Off Ver
    2016
    Posts
    5

    Using Index with multiple OR criteria

    I have everything working except my last index formula. I need it to pull people's names from a list if they have ANY of the following values. Everywhere I search the index function, they only talk about adding more criteria in an AND way, not an OR way. Here's the current formula:

    {=INDEX(ListNames,MATCH(1,(Value1=Area)*(Value2=Area)*(Value3=Area)*,0))}

    This is supposed to index anything that matches all three values. I need it to match everything with ANY of the three values, and list multiple people as answers.

  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,002

    Re: Using Index with multiple OR criteria

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please don't attach a picture of an Excel sheet (no-one will want to re-type all your stuff before starting).

    1. It does NOT have to be your real sheet - mock up a SAMPLE if you need to. But not 1000's of rows!!! It makes manual checking so tedious. Whatever you do... make sure that all confidential information is removed first!!

    2. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    3. Make sure that your desired solution is also shown (mock up the results manually).

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    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
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Using Index with multiple OR criteria

    {=INDEX(ListNames,MATCH(1,(Value1=Area)+(Value2=Area)+(Value3=Area)*,0))}

  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,002

    Re: Using Index with multiple OR criteria

    Maybe..

    =INDEX($A:A,AGGREGATE(15,6,ROW(AREA)/(AREA={"Value1","Value 2","Value 3"}),ROWS($1:1)))

    Red. Change to the correct WHOLE COLUMN reference
    Cyan "xxx" assumes text values. If numbers, remove the "" from the formula.

  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 2403
    Posts
    44,002

    Re: Using Index with multiple OR criteria

    For cyan... read green. I hit the wrong button.

  6. #6
    Registered User
    Join Date
    07-04-2019
    Location
    MN, USA
    MS-Off Ver
    2016
    Posts
    5

    Re: Using Index with multiple OR criteria

    Added: excel doc to see what the heck I'm talking about
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-04-2019
    Location
    MN, USA
    MS-Off Ver
    2016
    Posts
    5

    Re: Using Index with multiple OR criteria

    Quote Originally Posted by Glenn Kennedy View Post
    For cyan... read green. I hit the wrong button.
    Didn't work with my example, also I would like to have the values able to be cell references as they will change whenever a new program is selected.

  8. #8
    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,002

    Re: Using Index with multiple OR criteria

    I have no idea what you mean by groups of jobs. You did not explain...

    =IFERROR(INDEX(Sheet1!B:B,AGGREGATE(15,6,ROW($B$3:$B$6)/(ISNUMBER(MATCH($C$3:$E$6,$L$4:$L$8,0))),ROWS($1:1))),"")

    in
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    07-04-2019
    Location
    MN, USA
    MS-Off Ver
    2016
    Posts
    5

    Re: Using Index with multiple OR criteria

    Quote Originally Posted by Glenn Kennedy View Post
    I have no idea what you mean by groups of jobs. You did not explain...

    =IFERROR(INDEX(Sheet1!B:B,AGGREGATE(15,6,ROW($B$3:$B$6)/(ISNUMBER(MATCH($C$3:$E$6,$L$4:$L$8,0))),ROWS($1:1))),"")

    in
    This is working perfectly! Now is there a way to have it sorted by job? I'm guessing I need some sort of helping column for that but I'm willing to get complicated so the sheet is easier to read.

  10. #10
    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,002

    Re: Using Index with multiple OR criteria

    ?? Maybe this, in M4, copied across and down:

    =IFERROR(IF($L4="","",INDEX(Sheet1!$B:$B,AGGREGATE(15,6,ROW($B$3:$B$6)/($C$3:$E$6=$L4),COLUMNS($A:A)))),"")
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    07-04-2019
    Location
    MN, USA
    MS-Off Ver
    2016
    Posts
    5

    Re: Using Index with multiple OR criteria

    Quote Originally Posted by Glenn Kennedy View Post
    ?? Maybe this, in M4, copied across and down:

    =IFERROR(IF($L4="","",INDEX(Sheet1!$B:$B,AGGREGATE(15,6,ROW($B$3:$B$6)/($C$3:$E$6=$L4),COLUMNS($A:A)))),"")
    This! And you were able to do it so fast, thank you so much!

  12. #12
    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,002

    Re: Using Index with multiple OR criteria

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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: 1
    Last Post: 01-18-2019, 03:55 PM
  2. [SOLVED] Index Match with multiple criteria and date criteria
    By snolem75 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-28-2018, 03:51 PM
  3. Replies: 16
    Last Post: 01-05-2018, 11:04 PM
  4. [SOLVED] Need Excel formula to use INDEX and MATCH with multiple criteria's over multiple ranges.?
    By mchilapur in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-22-2017, 08:56 AM
  5. [SOLVED] Index Match with Multiple Criteria Using Same Criteria Column
    By rominjn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-05-2015, 11:34 AM
  6. Replies: 9
    Last Post: 08-20-2014, 04:43 PM
  7. [SOLVED] Two criteria Index Match on multiple sheets returning multiple values
    By Joak in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-21-2014, 10:03 AM

Tags for this Thread

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