+ Reply to Thread
Results 1 to 4 of 4

Trying to get SUMPRODUCT to be dynamic with a table

  1. #1
    Registered User
    Join Date
    08-03-2021
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2

    Trying to get SUMPRODUCT to be dynamic with a table

    My current formulas is as follows:

    Please Login or Register  to view this content.
    The table "Data_New" has other columns available such as "customer," "year," etc. I have some slicers on this table and would like the above formula to be dynamic when I select a customer and the table changes. To note, customer is not currently a part of the current formula and I do not want it to be.

    EDIT: I think I need to add SUBTOTAL and OFFSET but this didn't work:
    Please Login or Register  to view this content.
    Last edited by zztg; 08-03-2021 at 09:34 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Trying to get SUMPRODUCT to be dynamic with a table

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Trying to get SUMPRODUCT to be dynamic with a table

    ...I think I need to add SUBTOTAL and OFFSET ...
    Yes, this is generally where people go however, OFFSET introduces Volatility which, given SUMPRODUCT etc, can have an adverse impact on performance, depending on size of data, number of calcs etc.

    Given above, I would advise adding a visible flag field to the source table - and utilising that, as a multiplier, in your SUMPRODUCT

    e.g. within Data_New table add a column that simply returns 0/1 pending visible status of row:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    let's assume you called this field "Visible"... we can add that to your existing calculation:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    by adding this visible binary flag you automatically adjust the result, without introducing any volatility.

  4. #4
    Registered User
    Join Date
    08-03-2021
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2

    Re: Trying to get SUMPRODUCT to be dynamic with a table

    This seems like it will theoretically will work, but I tried adding a column called "visible" and used that subtotal formula to get a "1" in every row. However, my results do not change when filtering. I think it's because it might not be putting a "0" in the rows that are filtered off. Not sure how to check that.

    EDIT: This seemed to have worked! My formulas were on manual so I had to manually calculate each sheet. Thanks!
    Last edited by zztg; 08-03-2021 at 09:26 AM.

+ 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 dynamic row
    By Wheelie686 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-07-2020, 06:56 PM
  2. Dynamic sumproduct range that looks at pivot table?
    By Katie620 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-23-2019, 02:41 AM
  3. Dynamic Table of Store/Bank with location assignment (Dynamic Inventory)
    By x_ampl1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-14-2017, 01:58 PM
  4. SUMPRODUCT Dynamic Help
    By St3ff3ns in forum Excel General
    Replies: 5
    Last Post: 01-11-2017, 07:27 PM
  5. Wants to Create Dynamic Chart basis on Dynamic Table
    By Nisha Dhawan in forum Excel General
    Replies: 6
    Last Post: 04-30-2015, 12:08 AM
  6. Replies: 10
    Last Post: 10-09-2014, 06:20 PM
  7. Dynamic table formula for sorting data to another table dynamic
    By 650dozer in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-21-2012, 07:22 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