![]() |
|
#1
|
|||
|
|||
![]()
Dear all,
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 |
#2
|
||||
|
||||
![]()
Hi and welcome
please post a sample sheet with some data and expected results ( no pics please); Thx
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#3
|
|||
|
|||
![]()
Here you have the sample file.
Many thanks |
#4
|
||||
|
||||
![]()
Cross post SUMPRODUCT and SUBTOTAL combined in STRUCTURED TABLE | MrExcel Message Board
and SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#5
|
||||
|
||||
![]()
Try in D3:
Code:
=ROUND(SUMPRODUCT(SUBTOTAL(109,OFFSET(BALANCE[ANNUAL USAGE DECEMBER 2023],ROW(BALANCE[ANNUAL USAGE DECEMBER 2023])-MIN(ROW(BALANCE[ANNUAL USAGE DECEMBER 2023])),0,1)),BALANCE[BASE CASE (BUY FROM NASS) - DIRECT COST '[€']]),0) Code:
=LET(a,BALANCE[ANNUAL USAGE DECEMBER 2023],ROUND(SUMPRODUCT(SUBTOTAL(109,OFFSET(a,ROW(a)-MIN(ROW(a)),0,1)),BALANCE[BASE CASE (BUY FROM NASS) - DIRECT COST '[€']]),0)) |
#6
|
|||
|
|||
![]()
This is perfect, it works. Thanks
|
#7
|
||||
|
||||
![]()
Please mark thread " solved". Thanks ( see Thread Tools)
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
pivot table subtotal questions | sarana | Excel | 6 | 01-27-2019 08:22 PM |
Excel Structured Referencing: non-English reference? | tinfanide | Excel | 0 | 09-05-2015 04:41 AM |
Creating macros for a well structured analysis system | chillerlegend | Excel Programming | 1 | 06-21-2015 05:28 AM |
![]() |
Anmol786 | Excel | 1 | 01-18-2015 01:43 AM |
Each subtotal signature require only at last page for each subtotal. | aligahk06 | Excel | 0 | 05-07-2010 11:07 PM |