ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   SumProduct and Sum only Filtered data (https://www.excelbanter.com/excel-discussion-misc-queries/234288-sumproduct-sum-only-filtered-data.html)

Need_Help

SumProduct and Sum only Filtered data
 
I'm trying to use SubTotals on filtered data using SumProduct. The data is on
a different worksheet 'WGS_F3", I want to be able to use a filter on the
WGS_F3 worksheet and only show the totals for the matched criteria.

Example:

=SUMPRODUCT(--(WGS_F3!$J$11:$J$784=$B3),--(WGS_F3!$A$11:$A$784=A3),--(SUBTOTAL(9,(WGS_F3!$Y$11:$Y$784))))

T. Valko

SumProduct and Sum only Filtered data
 
Try it like this:

=SUMPRODUCT(--(WGS_F3!$J$11:$J$784=$B3),--(WGS_F3!$A$11:$A$784=A3),SUBTOTAL(9,OFFSET(WGS_F3! $Y$11:$Y$784,ROW(WGS_F3!$Y$11:$Y$784)-ROW(WGS_F3!$Y$11),0,1)))

--
Biff
Microsoft Excel MVP


"Need_Help" wrote in message
...
I'm trying to use SubTotals on filtered data using SumProduct. The data is
on
a different worksheet 'WGS_F3", I want to be able to use a filter on the
WGS_F3 worksheet and only show the totals for the matched criteria.

Example:

=SUMPRODUCT(--(WGS_F3!$J$11:$J$784=$B3),--(WGS_F3!$A$11:$A$784=A3),--(SUBTOTAL(9,(WGS_F3!$Y$11:$Y$784))))




Need_Help

SumProduct and Sum only Filtered data
 
That worked.
Thank you very much.

"Need_Help" wrote:

I'm trying to use SubTotals on filtered data using SumProduct. The data is on
a different worksheet 'WGS_F3", I want to be able to use a filter on the
WGS_F3 worksheet and only show the totals for the matched criteria.

Example:

=SUMPRODUCT(--(WGS_F3!$J$11:$J$784=$B3),--(WGS_F3!$A$11:$A$784=A3),--(SUBTOTAL(9,(WGS_F3!$Y$11:$Y$784))))


T. Valko

SumProduct and Sum only Filtered data
 
You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Need_Help" wrote in message
...
That worked.
Thank you very much.

"Need_Help" wrote:

I'm trying to use SubTotals on filtered data using SumProduct. The data
is on
a different worksheet 'WGS_F3", I want to be able to use a filter on the
WGS_F3 worksheet and only show the totals for the matched criteria.

Example:

=SUMPRODUCT(--(WGS_F3!$J$11:$J$784=$B3),--(WGS_F3!$A$11:$A$784=A3),--(SUBTOTAL(9,(WGS_F3!$Y$11:$Y$784))))





All times are GMT +1. The time now is 03:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com