Subtotal and Sumif combination help

Sourkraut

New Member
Joined
Jun 19, 2009
Messages
35
Alright, I need help combining two formulas.

What we need is to subtotal a range based on a criteria and we need that subtotal to change when the range is filtered.

We have two formulas that work seperately but we need to combine them into one.

=SUBTOTAL(9,Summary!H3:H39)

=SUMIF(Summary!F3:F39,B35,Summary!H3:H39)

B35 = The name we're trying reference
Column F is the column that would hold that name
Column H has the values we want to sum
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Try like this

=SUMPRODUCT(SUBTOTAL(9,OFFSET(Summary!F3,ROW(Summary!F3:F39)-ROW(Summary!F3),0)),(Summary!H3:H39=B35)+0)
 
Upvote 0
Didn't work but we're just going to try an implent a work around since we're kinda on a deadline. Thanks tho!
 
Upvote 0
HI,

=SUMIFS($F$12:$F$1048576,$A$12:$A$1048576,$E2,$I$12:$I$1048576,C$2)

=SUBTOTAL(9,$F$12:$F$677)

I need an help to COMBINE ABOVE FORMULA IN A SINGLE CELL so please help
 
Upvote 0
HI,

=SUMIFS($F$12:$F$1048576,$A$12:$A$1048576,$E2,$I$12:$I$1048576,C$2)

=SUBTOTAL(9,$F$12:$F$677)

I need an help to COMBINE ABOVE FORMULA IN A SINGLE CELL so please help
Kind of a belated reply...

Like this:

=SUMPRODUCT(--($A$12:$A$677=$E2),--($I$12:$I$677=C$2),SUBTOTAL(9,OFFSET($F$12,ROW($F$12:$F$677)-ROW(F$12),0)))
 
Upvote 0
For example

$A$12:$A$677=$E2

gives an array of False/True. The -- coerces that into an array of 0/1 that SUMPRODUCT can process.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top