+ Reply to Thread
Results 1 to 7 of 7

SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE

  1. #1
    Registered User
    Join Date
    04-18-2024
    Location
    Milan
    MS-Off Ver
    MS 365
    Posts
    3

    SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE

    Dear all,

    Thanks to have accepted me in this forum.

    I am struggling to find a solution to combine SUMPRODUCT and SUBTOTAL for a structured table.

    I have a table with slicer, and I would like to get the SUMPRODUCT based on slicer selection.

    By looking for a solution, I got this formula example:

    =SUMPRODUCT(
    SUBTOTAL(3,OFFSET('Raw Data'!F2:F150,ROW('Raw Data'!F2:F150)-ROW('Raw Data'!F2:F150),0)),
    ('Raw Data'!F2:F150=5)+0)


    and I tried to apply this in my case. So, step by step:

    - ROW(BALANCE[TOTAL SAVINGS '[€'] MARCH 2024])-MIN(ROW(BALANCE[TOTAL SAVINGS '[€'] MARCH 2024])) ==> This Works
    - The next step is to apply the OFFSET function ==> now I am blocked

    Could you help me?

    Many thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE

    Add a helper column with
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and then use
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-18-2024
    Location
    Milan
    MS-Off Ver
    MS 365
    Posts
    3

    Re: SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE

    Many Many Many thanks

  4. #4
    Registered User
    Join Date
    04-18-2024
    Location
    Milan
    MS-Off Ver
    MS 365
    Posts
    3

    Re: SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE

    And what about using the function I listed on the first post?

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE

    I tend to avoid the use of volatile where reasonably possible.

  6. #6
    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
    81,090

    Re: SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on at least TWO other forums and you have not told us about this. You are required to do so. Cross-posts are allowed but you must provide a link to your posts on other sites.

    Please see Forum Rule #7 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important: https://excelguru.ca/a-message-to-forum-cross-posters/

    (Note: this requirement is not optional. As you are new here, I shall do it for you this time: https://www.msofficeforums.com/excel...red-table.html & https://www.mrexcel.com/board/thread...table.1257529/)
    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.

  7. #7
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,069

    Re: SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE

    Try, =SUMPRODUCT((BALANCE[BASE CASE (BUY FROM NASS) - DIRECT COST '[€']]*(BALANCE[ANNUAL USAGE DECEMBER 2023])*SUBTOTAL(3,OFFSET(BALANCE[[#Headers],[Product Type Description]],ROW(BALANCE[Product Type Description])-ROW(BALANCE[[#Headers],[Product Type Description]]),0,1,1))))

+ 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. Replies: 17
    Last Post: 07-05-2021, 07:20 AM
  2. Variable for Structured Table Reference
    By acwalker84 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2019, 04:07 PM
  3. Structured Table References Problem
    By bseymore in forum Excel General
    Replies: 2
    Last Post: 01-24-2018, 01:10 PM
  4. Structured references for Pivot Table?
    By Cam in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-15-2015, 01:33 AM
  5. Structured Reference to a Single Table Value
    By mcclanat in forum Excel General
    Replies: 3
    Last Post: 11-08-2014, 04:21 PM
  6. VBA / Structured Table References
    By carlyman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-08-2014, 06:11 AM
  7. Structured Table References: What is [#Data]?
    By badaboom55 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2010, 06:31 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