+ Reply to Thread
Results 1 to 2 of 2

Matching or index multiple arrays

  1. #1
    Registered User
    Join Date
    03-10-2014
    Location
    Cheshire, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Matching or index multiple arrays

    I have attached a sample from aspeadsheet I am working on. The option reply sheet has '1' entered if the student has opted to take this course. On the other subject sheets I would like the names who have opted for that subject to appear. Stuidents can opted for multiple subjects. Any support will be great I have tried Match and Index functions but it is difficult as students can opt for more than one.

    Many thanks
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,598

    Re: Matching or index multiple arrays

    Set up a helper column for each subject to allocate a unique number for students who elect to take that subject. For example, in F2 of the Options sheet you can have this:

    =IF(B2,MAX(F$1:F1)+1,"")

    Copy this across for the other subjects, then copy all formulae down.

    Then in the Art sheet, you can have this in A4:

    =IFERROR(INDEX('Option replies'!A:A,MATCH(ROWS($1:1),'Option replies'!F:F,0)),"")

    which can be copied down as far as you like. Use a similar formula in the other subject sheets, but matching on a different column.

    Hope this helps.

    Pete

+ 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. vba compare arrays and remove exact matching arrays
    By jacojvv in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-25-2013, 07:30 AM
  2. Arrays Index Matching Macro Help
    By o2FearX in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-18-2013, 03:56 PM
  3. Problem with reference to multiple arrays in INDEX/MATCH combo
    By tnuis in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-24-2013, 08:10 PM
  4. Problems with reference to multiple arrays using VLOOKUP / INDEX-MATCH
    By tnuis in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-24-2013, 07:21 AM
  5. [SOLVED] matching to Arrays multiple queries
    By Christopherdj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-19-2012, 06:49 PM

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