+ Reply to Thread
Results 1 to 7 of 7

Index/match with multiple column criteria: Alternative to array formula and concatenation

  1. #1
    Registered User
    Join Date
    12-11-2017
    Location
    Germany
    MS-Off Ver
    Office 365
    Posts
    17

    Index/match with multiple column criteria: Alternative to array formula and concatenation

    Hi,
    I wanted to use an index function combined with 2 match functions,
    whereas both of the match functions refer to different rows.
    I want to avoid using a help row where I concatenate both column criteria and also want to avoid using an array function as this consumes CPU.
    In column CQ (YELLOW coloured cells only) you see my attempt to nest an "and" function to look up both column criteria without using an array formula or concatenating both column criteria.
    For example I want to display in cell CQ7 the value which can be found in CY 1 (columns As to AV) and there matches the criterion "LowerBand1".
    Apparently I am always getting the value from column AS

    Many thanks in advance
    Philip
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Index/match with multiple column criteria: Alternative to array formula and concatenat

    as this consumes CPU
    not quite
    =INDEX($AS10:$BL10,MATCH(1,INDEX(($AS$2:$BL$2=CQ$5)*($AS$3:$BL$3=CI10),),)) not array

  3. #3
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Index/match with multiple column criteria: Alternative to array formula and concatenat

    I want to avoid using a help row where I concatenate both column criteria and also want to avoid using an array function as this consumes CPU.
    These are basically your 2 options for doing this. The issue is that without concatenation you need to compare when both matches are on the same line, which means comparing multiple cells against multiple other cells (an array). People avoid doing an array formula by using a helping column, concatenating the 2 columns into a single column, thus eliminating the need to compare 2 ranges of cells against each other in an array.

    EDIT: Since your data is numeric and your lookup would only return 1 match (presumably) you could also do this with SUMIFS to the same results

    EDIT2: For what its worth you have excess styles in your file too. 10,777 to be exact...default is 47. You can get an idea of it from Home | Styles and view the drop down. May want to consider cleaning that up.

    EDIT3: Looks like you have a ton of named ranges too. Since I dont know the extent of your file hard to say they are "excess", but I would guess so. 4961 total.
    Last edited by Zer0Cool; 12-11-2017 at 02:16 PM.
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Index/match with multiple column criteria: Alternative to array formula and concatenat

    Hi,

    Why are you so set against a helper row 1 which concatenates rows 2 &3. The whole task would be so much simpler.
    Otherwise without a macro I believe you'll l have to have an array formula of one sort or another even if it's only a humble SUMPRODUCT.

    Here's one option
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Index/match with multiple column criteria: Alternative to array formula and concatenat

    Just noticed your headers in row 2 are not repeated. Looks nice for a person, but Excel doesnt know for example that column BJ should be considered CY 5 (i presume).

    after fixing that something like this should work:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    12-11-2017
    Location
    Germany
    MS-Off Ver
    Office 365
    Posts
    17

    Re: Index/match with multiple column criteria: Alternative to array formula and concatenat

    HI Zerocool,

    thanks a lot for your suggestions reducing CPU consumption.
    How can I clean up the Styles?

    Regards

    Philip

  7. #7
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Index/match with multiple column criteria: Alternative to array formula and concatenat

    Sorry, I responded to your PM.

    The gist for those reading this. There is not built in way to delete more than 1 style at a time. To do this you either need a 3rd party program or a macro, and most if not all of the macros online do not handle everything like corrupt styles (ones you cant even delete manually).

    MS has a page regarding excess styles, and they link to a tool called XLStylesCleaner which has worked well for me in the past. I would of course recommend trying it on a copy of the file first. It also cleans named ranges out.

+ 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] Is an array required for index-match with multiple criteria?
    By trolle in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-03-2017, 05:29 AM
  2. [SOLVED] Alternative to INDEX MATCH Array Formula to Populate Teaching Groups?
    By AliGW in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-19-2015, 01:58 PM
  3. VBA Alternative to array index match
    By Helgard25 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-14-2015, 09:01 AM
  4. Need an array possibly INDEX/MATCH formula with multiple lookup criteria.
    By TheClaw2323 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-25-2015, 09:59 AM
  5. [SOLVED] Index/Match Formula - multiple criteria in one column
    By davemon in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 12-19-2014, 03:00 PM
  6. Index Match Array Multiple Criteria
    By Keelin in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-23-2014, 02:48 AM
  7. Replies: 4
    Last Post: 03-27-2014, 01:09 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