+ Reply to Thread
Results 1 to 4 of 4

Index formula with large range is very slow

  1. #1
    Forum Contributor
    Join Date
    01-06-2004
    Posts
    121

    Index formula with large range is very slow

    I'll try not to make this explanation too long, but I'm not sure how much info is needed.

    The formulas below span 10 columns. The range in which the formulas are contained is Z12:AI2000:

    So, Z12's formula is:
    Please Login or Register  to view this content.
    and it goes to AI12's formula which is:
    Please Login or Register  to view this content.
    This spans all the way down to Z2000:AI2000


    The range O12:X2000 is referencing the range B12:K2000 where data is entered. In cell K12, if I enter a 1, then the data from B12:K12 is carried to O12:X12. If K12 is blank, then the O12:X12 remains empty. The same is true for all rows down to K2000. Hope all that's clear, but I doubt it!

    The role of range Z12:AI2000 is to weed out any blank rows from O12:X2000. It takes a very long time to tab from one cell to the next in the cells where data is entered due to the calculations happening in Z12:AI2000.

    The question is, is there a more efficient way to accomplish this without slowing everything down?

  2. #2
    Forum Contributor
    Join Date
    01-06-2004
    Posts
    121

    Re: Index formula with large range is very slow

    So...nothing?

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

    Re: Index formula with large range is very slow

    I usually avoid the INDEX(SMALL(INDEX construct, as it can be very slow for large ranges. Instead, you can use a helper column which applies the condition and allocates a sequential number to records that match the condition. Then it is relatively easy to use an INDEX(MATCH(ROWS formula to retrieve the data.

    The helper formula would be something like:

    =IF(O12="","-",COUNTIF(O$12:O12,">0))

    which is then copied across 10 columns and down to row 2000.

    It would help if you attached a sample workbook, then I can show you how to set the formulae up.

    Hope this helps.

    Pete

  4. #4
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Index formula with large range is very slow

    May be

    Please see the attached workbook.

    Hope this will solve your problem.
    Attached Files Attached Files
    Sincerely,

    mso3

+ 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. Very slow ClearContents or Delete for large range
    By whyreless in forum Excel General
    Replies: 8
    Last Post: 10-28-2014, 11:55 AM
  2. [SOLVED] Index/Match using Large Formula
    By Steve0492 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-20-2013, 04:08 AM
  3. [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
  4. Index large formula problem.
    By amartino44 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-17-2013, 10:21 AM
  5. Index Match Index Formula work slow
    By avk in forum Excel General
    Replies: 9
    Last Post: 03-07-2012, 02:19 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