Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-18-2024, 12:24 AM
Michele_1979 Michele_1979 is offline SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE Windows 7 64bit SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE Office 2013
Novice
SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE
 
Join Date: Apr 2024
Posts: 9
Michele_1979 is on a distinguished road
Default SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE

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
Reply With Quote
  #2  
Old 04-18-2024, 02:32 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE Windows 10 SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,780
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Hi and welcome
please post a sample sheet with some data and expected results ( no pics please); Thx
__________________
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
Reply With Quote
  #3  
Old 04-18-2024, 04:45 AM
Michele_1979 Michele_1979 is offline SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE Windows 7 64bit SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE Office 2013
Novice
SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE
 
Join Date: Apr 2024
Posts: 9
Michele_1979 is on a distinguished road
Default

Here you have the sample file.

Many thanks
Attached Files
File Type: xlsx EXAMPLE.xlsx (388.7 KB, 2 views)
Reply With Quote
  #4  
Old 04-18-2024, 11:13 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE Windows 10 SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,780
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Cross post SUMPRODUCT and SUBTOTAL combined in STRUCTURED TABLE | MrExcel Message Board
and
SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE
__________________
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
Reply With Quote
  #5  
Old 04-19-2024, 05:17 AM
p45cal's Avatar
p45cal p45cal is offline SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE Windows 10 SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE Office 2021
Expert
 
Join Date: Apr 2014
Posts: 871
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

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)
or a bit shorter:
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))
Reply With Quote
  #6  
Old 04-19-2024, 06:55 AM
Michele_1979 Michele_1979 is offline SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE Windows 7 64bit SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE Office 2013
Novice
SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE
 
Join Date: Apr 2024
Posts: 9
Michele_1979 is on a distinguished road
Default

This is perfect, it works. Thanks
Reply With Quote
  #7  
Old 04-19-2024, 11:30 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE Windows 10 SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,780
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Please mark thread " solved". Thanks ( see Thread Tools)
__________________
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
Reply With Quote
Reply



Similar Threads
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
SUMPRODUCT and SUBTOTAL for STRUCTURED TABLE My subtotal and sum 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

Other Forums: Access Forums

All times are GMT -7. The time now is 04:19 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft