+ Reply to Thread
Results 1 to 4 of 4

Search Multi Column Array

  1. #1
    Registered User
    Join Date
    02-08-2021
    Location
    Michigan, USA
    MS-Off Ver
    O365
    Posts
    48

    Search Multi Column Array

    Hello, I am trying to search for data between two columns and have the data list in another. I can get it to work for one column but when I add the second column to the array I loose data. Here is the formula that is working for one column now:

    =IFERROR(INDEX(Names!A:A,AGGREGATE(15,6,ROW(Roster[Student Name])/(Roster[System]={"System 8","System 9","System 10"}),ROWS(R$3:R3))),"")

    But when I change the formula to the one below (difference in bold), I loose data:

    =IFERROR(INDEX(Names!A:A,AGGREGATE(15,6,ROW(Roster[Student Name])/(Roster[[System]:[System 2]]={"System 8","System 9","System 10"}),ROWS(R$3:R3))),"")

    I have also attached a document to aid in seeing what is happening. Thank you for the help.
    Attached Files Attached Files

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

    Re: Search Multi Column Array

    The formula
    =IFERROR(INDEX(Names!A:A,AGGREGATE(15,6,ROW(Roster[Student Name])/(Roster[[System]:[System 2]]={"System 8","System 9","System 10"}),ROWS(R$3:R3))),"")
    creates a 2 dimensional array with this part (Roster[[System]:[System 2]]={"System 8","System 9","System 10"})
    (makes two columns)
    It is not compatible with the one dimensional array part returned by ROW(Roster[Student Name]) (one column)

    This is one way to reconcile that
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    It returns this at my end.


    S
    1
    Thursday
    2
    System G
    3
    Student 5
    4
    Student 10
    5
    Student 12
    6
    Student 13
    7
    Student 16
    8
    Student 17
    9
    10
    11
    12
    13
    14


    If you would like to know more about multi-array formulas and re-dimensioning this is an excellent site to study. Careful. It can be addicting. LOL https://excelxor.com/
    Dave

  3. #3
    Registered User
    Join Date
    02-08-2021
    Location
    Michigan, USA
    MS-Off Ver
    O365
    Posts
    48

    Re: Search Multi Column Array

    Hi Dave,

    Thank you so much. That is exactly what I was looking for. From my testing if I was only looking for one item (System 8) between the two columns [[system]:[system 2]] it works but when I was searching for multiple items (System 8, System 9) between the two columns it did not work. But your formula and explanation worked perfect. I now see all students who need to attend the system no matter which column it is listed in. And I will be sure to check out that website.

    Tim

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Search Multi Column Array

    You are welcome. Glad it was helpful.

    Thank you for the feedback, added rep and marking your thread Solved.

+ 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: 7
    Last Post: 02-01-2016, 03:49 AM
  2. Replies: 1
    Last Post: 07-22-2014, 08:27 PM
  3. Replies: 0
    Last Post: 01-14-2014, 06:35 PM
  4. [SOLVED] Match search terms, and add data in next column. Multi search problem.
    By Wales MB in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-23-2013, 06:10 PM
  5. Replies: 5
    Last Post: 09-12-2012, 01:27 PM
  6. Need Row and Column in Multi D Array
    By BeingYogi in forum Excel General
    Replies: 5
    Last Post: 04-04-2012, 10:57 PM
  7. Single Conditional Array x two Multi-Column Array - Approach needed
    By David Brown in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-28-2010, 11:41 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