+ Reply to Thread
Results 1 to 7 of 7

Alternative to INDEX MATCH Array Formula to Populate Teaching Groups?

  1. #1
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,934

    Alternative to INDEX MATCH Array Formula to Populate Teaching Groups?

    The attached workbook contains dummy data, but is the actual one that I use to sort out language teaching groups from option choices made in the early spring each year: the teaching groups are shown on the second tab, and they use an array formula to draw names from the master list on the first tab:

    {=IFERROR(INDEX('Y7 Language Options 2016'!$A:$A,SMALL(IF(LEFT('Y7 Language Options 2016'!$K:$K,1)=MID(B$2,3,1),ROW('Y7 Language Options 2016'!$A:$A)),ROWS($A$1:$A1))),"")}

    This works well, but rather slowly, and I have to switch to manual calculation when filling in the choices on the master sheet. What I am wondering is whether there is a non-array formula that I can use that will do the same thing, but quicker? I do not want to change the layout of the workbook and I would much prefer not to have to use helper columns (personal preferences).

    Can anyone help?
    Attached Files Attached Files
    Last edited by AliGW; 12-19-2015 at 09:56 AM. Reason: Issue resolved - thank you!
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

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

    Re: Alternative to INDEX MATCH Array Formula to Populate Teaching Groups?

    I very rarely recommend that IFERROR(INDEX(SMALL construct (committed with CSE), as it can be very hungry on resources, and I prefer to use a helper column to identify the records that match the criteria and generate a unique sequential number, then a straightforward INDEX/MATCH formula with a ROWS($1:1) term can pick the appropriate record - sometimes I will split the MATCH out into another helper column rather than have that term repeated as a formula is copied across.

    So, it's down to personal preferences - the use of helper columns will speed things up and the formulae used are simpler and thus easier to maintain.

    Hope this helps.

    Pete

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Alternative to INDEX MATCH Array Formula to Populate Teaching Groups?

    I didn't download your file.

    Reduce the references to entire columns to smaller specific ranges where highlighted:

    =IFERROR(INDEX('Y7 Language Options 2016'!$A:$A,SMALL(IF(LEFT('Y7 Language Options 2016'!$K2:$K100)=MID(B$2,3,1),ROW('Y7 Language Options 2016'!$A2:$A100)),ROWS($A$1:$A1))),"")

    Also, if you don't know how much data you might have use dynamic ranges.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,934

    Re: Alternative to INDEX MATCH Array Formula to Populate Teaching Groups?

    Thanks, Pete. So, what in this case would you use as a helper column? The formula I'm using is adapted from various things I've learnt here, and whilst I fully understand the INDEX MATCH element, my comprehension of the rest of the formula is somewhat hazy, which makes it difficult at my stage in learning to see alternatives. Thanks for the help!

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

    Re: Alternative to INDEX MATCH Array Formula to Populate Teaching Groups?

    Here's a thread I've just been looking at:

    http://www.excelforum.com/excel-form...workbooks.html

    as it was a similar problem to yours (also complicated by having a closed workbook). You might be able to follow my explanations there, but if not say so and I'll take a detailed look at your attached file.

    Hope this helps.

    Pete

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,934

    Re: Alternative to INDEX MATCH Array Formula to Populate Teaching Groups?

    Thanks again, Pete - I will have a look, however Tony's comment about limiting the ranges (a stupid oversight on my part) has eradicated any slowness in calculation, so the issue is resolved. I'll certainly study the other thread out of academic interest, however.

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Alternative to INDEX MATCH Array Formula to Populate Teaching Groups?

    Good deal. Thanks for the feedback!

+ 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. [SOLVED] Index and Match Formula (or alternative?)
    By dvs in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-22-2015, 05:57 PM
  2. VBA Alternative to array index match
    By Helgard25 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-14-2015, 09:01 AM
  3. [SOLVED] Help with INDEX, MATCH and MAX formula - or alternative solution
    By glynnseal in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-04-2014, 08:50 AM
  4. [SOLVED] Index and match for teaching distribution
    By mnur in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-30-2013, 02:27 AM
  5. UDF Lookup function as an alternative to array functions & match/index
    By Andrew_Harris in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-15-2012, 09:34 PM
  6. Nested Match(index()) vs. Match() array formula.
    By GeneralDisarray in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-14-2011, 07:57 AM
  7. INDEX/MATCH formula in VBA to populate text boxes
    By Amber_D_Laws in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-17-2006, 12:19 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