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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,224,820
Messages
6,181,161
Members
453,021
Latest member
Justyna P

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