+ Reply to Thread
Results 1 to 6 of 6

Long Computational Time for INDEX/MATCH, Can it be reduced?

  1. #1
    Registered User
    Join Date
    08-18-2020
    Location
    AUS
    MS-Off Ver
    2013
    Posts
    5

    Long Computational Time for INDEX/MATCH, Can it be reduced?

    Hey Guys,

    As per the title I have done a workbook for my work at when the index/match search range was around 300 cells the workbook was snappy etc, I have recently doubled the search range from 300 to 637 and the workbook is slowing down. I have posted my index match array formula here. Any help would be greatly appreciated.

    =IFERROR(IF(INDEX('Proposal Register DATA 2020'!$A$37:$O$637,SMALL(IF(('Proposal Register DATA 2020'!$A$37:$A$637<=$L$30)*('Proposal Register DATA 2020'!$A$37:$A$637>=$L$29),MATCH(ROW('Proposal Register DATA 2020'!$A$37:$A$637),ROW('Proposal Register DATA 2020'!$A$37:$A$637),0),""),ROW('Proposal Register DATA 2020'!B56)),COLUMN('Proposal Register DATA 2020'!B56))="","",INDEX('Proposal Register DATA 2020'!$A$37:$O$637,SMALL(IF(('Proposal Register DATA 2020'!$A$37:$A$637<=$L$30)*('Proposal Register DATA 2020'!$A$37:$A$637>=$L$29),MATCH(ROW('Proposal Register DATA 2020'!$A$37:$A$637),ROW('Proposal Register DATA 2020'!$A$37:$A$637),0),""),ROW('Proposal Register DATA 2020'!B56)),COLUMN('Proposal Register DATA 2020'!B56))),"")

    Please note that the iferror is there as it was returning an error for empty cells and the second if statement if there because the index/match was returning 0 values at times. More information would be the table is 637 by 14 giving it a total search range of 8918 cells.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,814

    Re: Long Computational Time for INDEX/MATCH, Can it be reduced?

    I haven't explored in detail your function, but I am reminded of this discussion (https://www.excelforum.com/excel-pro...lculation.html ) where we took a spreadsheet that allegedly took a week to calculate and restructured it to use helper columns and more efficient lookups and got it down a few seconds. I would take that big mega formula and pull it apart into smaller bites.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    08-18-2020
    Location
    AUS
    MS-Off Ver
    2013
    Posts
    5

    Re: Long Computational Time for INDEX/MATCH, Can it be reduced?

    Thanks for your time MrShorty, I will review that thread over my lunch break. I guess the thing that stands out to me is that I am basically repeating my index/match twice in each cell as to return a blank cell instead of a 0, of the top of your head would there be a more efficient way to get this result.

    Any thanks again, any help is greatly appreciated.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: Long Computational Time for INDEX/MATCH, Can it be reduced?

    If you are getting a zero returned when it should be blank, you could try concatenating the result with null ( "" ). If any values should be numeric that would have the downside of making them text values rather than numbers.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Registered User
    Join Date
    08-18-2020
    Location
    AUS
    MS-Off Ver
    2013
    Posts
    5

    Re: Long Computational Time for INDEX/MATCH, Can it be reduced?

    Hi TMS,

    Thank you for your time unfortunately the table is an array of currency, general, dates etc. see image below. Could I get around this by simply formatting the cells respectively, apologies if I'm off track I haven't much experience with linking like that.

    Many thanks for your time.

    Attachment 691793

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,814

    Re: Long Computational Time for INDEX/MATCH, Can it be reduced?

    Your attachment didn't attach. Be sure that you are following the instructions in the yellow banner at the top when attaching files.
    I am basically repeating my index/match twice in each cell as to return a blank cell instead of a 0, of the top of your head would there be a more efficient way to get this result.
    Exact match lookups are notoriously slow. If you are doing the exact same slow lookup inside of the function, move that lookup out into a helper cell. =IF(slowlookup=0,"",slowlookup) takes roughly twice as long as =slowlookup in one cell and =IF(referencetoslowlookup=0,"",referencetoslowlookup) because the lookup is only performed once rather than twice.

+ 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. Simplifying long Index/Match formula
    By goodlordhelpme in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-18-2019, 11:33 PM
  2. INDEX MATCH MATCH will not auto populate and takes LONG
    By njm0059 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-26-2018, 04:32 AM
  3. INDEX MATCH returns #N/A - Formula too long?
    By maym in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 07-27-2017, 06:33 AM
  4. Faster option than VLOOKUP? INDEX/MATCH is taking twice as long...
    By mrbusto71 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-12-2015, 09:44 PM
  5. Replies: 2
    Last Post: 11-03-2014, 02:29 PM
  6. INDEX/MATCH formula taking too long
    By Rob Ardill in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-09-2014, 11:01 PM
  7. [SOLVED] Long array formula with INDEX and MATCH quits working when range is too large
    By UncleKevy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-05-2013, 09:42 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