+ Reply to Thread
Results 1 to 4 of 4

Optimize SUMPRODUCT with dynamic sum range. SUMIFS??

  1. #1
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Optimize SUMPRODUCT with dynamic sum range. SUMIFS??

    Hi,

    I have the formula:
    Please Login or Register  to view this content.
    The indexing part pretty much to find the column to SUM from columns DB:DY depending on a date in B2 (date headers are also in $DB$3:$DY$3).

    The problem that I have, is that is the sumproduct range is already huge 24 columns by 32,530 rows. And I entered the SUMPRODUCT formula in around 25,000 cells. So it's getting real SLOWWWW to work. It calculates every time the worksheet/workbook refreshes. And it takes around 10 minutes for it to recalculate.

    Is there a more efficient multi vlookup formula that also handles dynamic sum ranges. I thought of SUMIFS but, I would still need to confirm it as array due to the dynamic sum columns.

    Thanks
    Ron
    Knowledge is knowing that a tomato and pepper are fruits. Wisdom is knowing whether to put these in a fruit salad

    Kindly

    [1] Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks
    [2] Mark your post [SOLVED] if it has been answered satisfactorily by editing your original post in advanced mode.
    [3] Thank (using the little scale) those that provided useful help; its nice and its very well appreciated

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Optimize SUMPRODUCT with dynamic sum range. SUMIFS??

    Hello,

    you can use Index/Match to define the sum range for a Sumifs. This should be way faster than the array based SumProduct. Try

    Please Login or Register  to view this content.
    Let me know if that works for you.

    cheers, teylyn

  3. #3
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: Optimize SUMPRODUCT with dynamic sum range. SUMIFS??

    yeah, that's exactly what I'm trying.

    It's definitely faster. It's still takes like a minute or so to calculate but not the 6-10 minutes SUMPRODUCT was taking.

    Thanks,

  4. #4
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: Optimize SUMPRODUCT with dynamic sum range. SUMIFS??

    The weird thing, is that have 20 or so groups of cells. Every time I expand them, the sheet starts to calculate again. Despite the fact that it had had just re-calculated 10 seconds ago.

    Any way around that?

+ 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] SUMIFS with a dynamic, offset criteria range
    By adelcap in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-22-2014, 05:35 AM
  2. [SOLVED] SUMIFS or SUMPRODUCT or Other solution to sum a range.
    By timgmurphy99 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-30-2013, 06:57 PM
  3. [SOLVED] Dynamic range in SUMIFS
    By chungliwen in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-14-2013, 03:28 AM
  4. [SOLVED] sumifs function to calculate dynamic range sum problem
    By xs2deepak in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-25-2013, 04:24 PM
  5. Replies: 0
    Last Post: 10-12-2012, 01:58 AM

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