Results 1 to 15 of 15

Speeding up SUMPRODUCT/ SUMIFS array formula

Threaded View

  1. #1
    Forum Contributor
    Join Date
    07-13-2017
    Location
    Hong Kong
    MS-Off Ver
    MS Office 365
    Posts
    481

    Speeding up SUMPRODUCT/ SUMIFS array formula

    Hi all,

    I have a large data set where I need to SUM cells IF a certain criteria is met without using helper columns. The formula I am currently using is giving the right results, though, as it is a SUMPRODUCT/ SUMIFS array formula it makes the file unnecessarily slow. I have already speeded it up by using:

    =IF(G$3=0,0
    at the beginning of the formula to not have it calculate the array if not relevant, this speeds it up by about a factor of 2 in my data set.

    =IF(G$3=0,0,IFERROR(SUMPRODUCT(--(ISNUMBER(G$7:G$409)+ISNUMBER(SEARCH(SUBSTITUTE(G$7:G$409," ",""),REPT("x",3)))>0),--(G$7:G$409>0),--(Attribute_Drop<>"DROP"),--(Attribute_Status<>"INACTIVE"),SUMIFS(INDEX(IA!$A:$ZZ,0,G$1),IA!$A:$A,"JAPAN",IA!$C:$C,Attribute_PricePoint,IA!$B:$B,Attribute_RetailClass)),0))
    Now I was wondering if there is another "trick" to make it ignore calculations if not relevant. E.g. Only SUMIF data from the "IA" sheet if criteria is met and "skip" calculation of cells in the array that aren't relevant. Currently even if ALL data in the GREY cells is deleted, calculation times don't change!! The formula still seems to run through every single cell in the array and calculate the SUM of all PRODUCTS. Is it possible to rewrite the formula somehow so that it skips these cells? Or use a different approach/formula altogether?

    BTW I am currently testing the speed with a macro. Select the cells that need testing and press CONTROL+SHIFT+R. It gives me about 0.17 seconds for all "MIN IA" cells (29 cells in total). In my data set it's about 10 seconds as the array gets longer.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. SUMPRODUCT/SUMIFS Dynamic array doesn't works
    By regoroes in forum Excel General
    Replies: 5
    Last Post: 01-04-2018, 03:01 AM
  2. Trying to move SUMPRODUCT formula to SUMIFS
    By chimelle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-20-2015, 05:08 PM
  3. [SOLVED] Convert SUMIFS formula to SUMPRODUCT
    By timbury1 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-08-2014, 01:18 PM
  4. Sumproduct with sumifs formula
    By nilani in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-22-2014, 08:50 AM
  5. Using Sumproduct or sumifs when a cell has a formula
    By cartica in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-15-2013, 04:02 PM
  6. [SOLVED] =SUMPRODUCT(SUMIFS....Formula Ammendment
    By 3smees23 in forum Excel General
    Replies: 2
    Last Post: 05-22-2012, 08:53 AM
  7. Speeding up Array
    By gti_jobert in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2006, 10:45 AM

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