+ Reply to Thread
Results 1 to 4 of 4

Array formula slowing workbook down

  1. #1
    Registered User
    Join Date
    11-30-2016
    Location
    Portsmouth, Virginia
    MS-Off Ver
    2016
    Posts
    11

    Array formula slowing workbook down

    Good day,

    I am building an inventory workbook of sorts where I am using an array formula to analyze and return rows of data based on criteria in a single column. Because this inventory must cover an entire year of business, it must analyze 6000+ rows in a single query. This of course causes my workbook to bog down badly. Not helping the matter is the fact that I have several other similar array formula pulling separate queries for each. I am aware of the option of using a "helper column". In "helper column" examples that I have seen, they seem to be performing a necessary calculation (previously within the array), thereafter using smaller array to do the rest. My problem is that in my case, I don't see what calculation could be extracted and performed outside of the array. Hoping I might receive some guidance from anyone able to read this.

    Array fx: {=IFERROR(INDEX(INPUT!A$2:A$6001,SMALL(IF(INPUT!$B$1:$B$6001=FRAMEWORK!$A$2,ROW(INPUT!A$2:A$6001)-ROW(INPUT!A$2)+1),ROWS(INPUT!A$2:INPUT!A2))),"")}

    Helper column fx: ????

    Thanks in advance for your time and input.

    Peter H.
    Virginia, USA

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Array formula slowing workbook down

    If your formula entered on Sheet FRAMEWORK! you don't need to reference the sheet name. You also don't need to reference sheet name in ROWS(INPUT!A$2:INPUT!A2); just use ROWS(A$2:A2)
    Your INDEX part can be used like this: ($A:A,.... this method will allow you to get rid of row correction: -ROW(INPUT!A$2)+1)
    Try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    11-30-2016
    Location
    Portsmouth, Virginia
    MS-Off Ver
    2016
    Posts
    11

    Re: Array formula slowing workbook down

    Thanks very much for your reply. If I may just clarify a couple of points from your response.

    1. Is your recommendation to move the range being returned (via your formula) to sheet FRAMEWORK?
    2. Can the same syntax ($A:$A) be applied to the criteria range? ...IF(INPUT!$B:$B=$A$2,...
    3. Is your above solution still an array (CSE)?

    Thanks very much for your time

    Peter H.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,817

    Re: Array formula slowing workbook down

    Since you are running version 2016 you could use a non-array formula employing the AGGREGATE function as in the following:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I'm not sure that this would speed things up significantly, and my gut feeling is that this might be a situation (pulling data from one column based on a value in another) where a Pivot Table would be a better option. It would help me to visualize the problem if you could upload a sample (the closer to the actual data the better) of your workbook.
    To attach a sample workbook. click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. workday formula slowing down computer
    By cartica in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2016, 07:28 PM
  2. VBE Code Windows Maximize on workbook open slowing performance
    By Gingermuppet in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-02-2014, 01:08 AM
  3. Array Formula Help w/ Excel Workbook Example
    By mcmahobt in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-15-2014, 10:01 PM
  4. Big conditional formatting formula slowing down file, need help to rewrite
    By henkisdabro in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-21-2014, 01:27 AM
  5. [SOLVED] Dynamic Ranges Slowing Workbook Calculations - Options to Remedy?
    By grant95783 in forum Excel General
    Replies: 4
    Last Post: 02-27-2014, 02:08 PM
  6. Too many formulae slowing down workbook
    By nohero in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-28-2011, 12:38 PM
  7. Custom function slowing workbook speed
    By PIPPIBOOKS in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-04-2008, 05:30 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