+ Reply to Thread
Results 1 to 5 of 5

Sumproduct with a dynamic range...is that the only way?

  1. #1
    Registered User
    Join Date
    05-11-2008
    MS-Off Ver
    2010
    Posts
    91

    Sumproduct with a dynamic range...is that the only way?

    Are using dynamic ranges the only way to make the rows in a SUMPRODUCT formula not change if rows are deleted/added on the data set? The reason why I ask is if I have a set of data where there is a column for each month, that would mean that I would need to create 12 dynamic ranges for each month. If I have say 2 or 3 data sets then I would need to create even more dynamic ranges. Is there an easier way that you guys use or are dynamic ranges the only option? I have attached an example. In the example I have set the SUMPRODUCT formula to go down to row 50. If I add or delete rows on the data set, the formula will change accordingly. Is there a way to keep the row anchored at row 50 without using dynamic ranges? The only thing I can think of would be to use the INDIRECT function inside of the SUMPRODUCT function. Are there any other alternatives?
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Sumproduct with a dynamic range...is that the only way?

    I used this and cot the exact same answers as you did?

    =SUMIFS(Data!C:C,Data!$A:$A,'Sumproduct Example'!$A6,Data!$B:$B,'Sumproduct Example'!$B$3)
    Note the use of absoluting in the ranges and cells
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-11-2008
    MS-Off Ver
    2010
    Posts
    91

    Re: Sumproduct with a dynamic range...is that the only way?

    Would using the entire column as the range affect calc speed or does it not affect it as much when using a SUMIFS as opposed to using a SUMPRODUCT?

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Sumproduct with a dynamic range...is that the only way?

    With SUMIFS referencing entire columns should not be a problem

    Some reading on SUMIFS v SUMPRODUCT

    http://exceluser.com/blog/483/excels...is-faster.html
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Registered User
    Join Date
    05-11-2008
    MS-Off Ver
    2010
    Posts
    91

    Re: Sumproduct with a dynamic range...is that the only way?

    Sweet! Thanks for the info guys.

+ 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. Sumproduct for dynamic range
    By Bob@Sun in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-05-2010, 06:32 AM
  2. SUMPRODUCT & Dynamic Range Problem
    By cedarhill in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-22-2009, 06:22 AM
  3. Sumproduct, dynamic range
    By jmicdk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2008, 08:43 PM
  4. Dynamic Range within sumproduct formula
    By T De Villiers in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-19-2006, 07:27 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