+ Reply to Thread
Results 1 to 4 of 4

Listing all results that match a test....

  1. #1
    Registered User
    Join Date
    08-08-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    17

    Listing all results that match a test....

    Hi all,

    So i am stuck on this one query and can't really find an answer anywhere...

    I have a list of students in column A and they may have a grade combination ranging from 1a-1a to 5c-5c. If I then have a list of all the grade combinations i want it to return all student names with that grade combo. I'm sure its an array of sorts but I can't figure this one out!

    I've attached a smaller/dumbed down version to hopefully explain it better!

    Array Query.xls


    Thanks in advance!

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Listing all results that match a test....

    nedwards1980,

    Welcome to the forum!
    Attached is a modified version of your posted workbook. I have shown two ways to get the information you want.

    The first is with a pivot table in columns D:K. the columns F:K are empty because they are not being used by the pivot table, so I have hidden them.

    The second is with a formula. In cell N2 and copied over and down to cell S11:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    08-08-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Listing all results that match a test....

    Ahhhhh sorry, I thought of both of these, the issue is that I ideally want all names in the one cell and it has to work in Excel 2003. I have a version that works well in 2010 but this will being going out to primary school teachers who mostly run with 2003....

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Listing all results that match a test....

    The version I gave you is 2003 compatible. Is there a specific reason it has to be in a single cell? The only way to get all the results in a single cell would be either a VBA solution which means they would have to enable macros each time they opened the file, or using an addin like MoreFunc and they would have to have the addin installed also, or using the provided results as helper columns (details below).

    The only text joining function, Concatenate, does not work with arrays, so there is no built in solution to get all of the results into a single cell.
    You could, however, use the formula I provided to get the proper results off to the side as helpers, and then use a formula similar to this to bring in the results to a single cell, as long as you don't mind having a lot of helpers (whose columns can be hidden):

    So assuming the unique list of grade combos is in column D, and the helpers are in column N as shown in the file I posted, this would be the formula in cell E2 and copied down:
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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