+ Reply to Thread
Results 1 to 6 of 6

Create a List off Multiple Criteria

  1. #1
    Registered User
    Join Date
    06-26-2019
    Location
    Tampa
    MS-Off Ver
    2016
    Posts
    3

    Create a List off Multiple Criteria

    I am attempting to create a sheet for my wife that will reference classes completed, grades, and credits earned for her high school students. I am stuck at getting the class lists to populate in the order desired. I want the formula to reference the Student Name (which changes with a data validation drop down list) and the Department (i.e. English, Math, etc.) and give the results in 4-6 rows under each department listing. I have used an INDEX SMALL IF formula to return results based on 1 criteria, but cannot figure out how to get it to return results based on 2 criteria. Below is the formula I am trying to use, but Excel says there is a problem with my formula:

    =INDEX(Sheet6!$A$1:$G$1531,SMALL(IF(Sheet6!$A:$A=$H$4,ROW(Sheet6!$A:$A)),ROW(1:1))*(IF(Sheet6!$C:$C=Sheet8!$D$4,ROW(Sheet6!$C:$C)),ROW(1:1))-1,2)

    I have tried it with and without the second "IF" included.

    Thanks in advance for any help provided!!

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

    Re: Create a List off Multiple Criteria

    Ohh, that looks messy!!

    =IFERROR(INDEX(Sheet6!$B:$B,AGGREGATE(15,6,ROW(Sheet6!$A$2:$A$2000)/((Sheet6!$A$2:$A$2000=$H$4)*(Sheet6!$C$1:$C$2000=Sheet8!$D$4)),ROWS($1:1))),"")

    No need to array enter. If that's not it...

    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
    Registered User
    Join Date
    06-26-2019
    Location
    Tampa
    MS-Off Ver
    2016
    Posts
    3

    Re: Create a List off Multiple Criteria

    You are a rockstar!!! Thank you! I've scoured the internet looking for that solution.

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

    Re: Create a List off Multiple 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.

  5. #5
    Registered User
    Join Date
    06-26-2019
    Location
    Tampa
    MS-Off Ver
    2016
    Posts
    3

    Re: Create a List off Multiple Criteria

    A follow up, and I'm not sure how to send an example without sending the entire workbook because it's only happening in some instances. But it's not pulling all the data each time.

    I have 1 student who has taken Chinese 1, 2, and 3, but the formula is only pulling in 2 and 3.

    I used the same formula to pull the grades from the raw data to the summary sheets and some of them are not showing up either. (The same student mentioned above, it does not show his grades for Chinese 3.)

  6. #6
    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,053

    Re: Create a List off Multiple Criteria

    oops.

    That is my fault, as I didn't have a file to work with;

    =IFERROR(INDEX(Sheet6!$B:$B,AGGREGATE(15,6,ROW(Sheet6!$A$2:$A$2000)/((Sheet6!$A$2:$A$2000=$H$4)*(Sheet6!$C$2:$C$2000=Sheet8!$D$4)),ROWS($1:1))),"")

+ 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. INDEX/MATCH to create a list with multiple criteria
    By Alphabex in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-12-2018, 08:03 AM
  2. Create Unique List from Multiple Criteria
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2015, 04:20 PM
  3. [SOLVED] Match multiple criteria in table, create list
    By x65140 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-15-2014, 12:21 PM
  4. Help to create list based on multiple criteria (example attached)
    By kfryar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-13-2014, 08:32 PM
  5. Create list of cells based on multiple criteria
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-03-2013, 01:59 PM
  6. Create list with multiple criteria
    By twalker1228 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-07-2013, 06:54 PM
  7. [SOLVED] Create a sub list into another sheet based on multiple criteria
    By icalculate in forum Excel General
    Replies: 3
    Last Post: 02-06-2013, 02:14 PM

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