Need to subtotal a sumif formula

Clooney

New Member
Joined
Sep 28, 2012
Messages
41
Office Version
  1. 365
Platform
  1. Windows
=SUMIF(A28:A5076,A2,H28:H5076)+SUMIF(A28:A5076,A2,I28:I5076)

If I filter this data I want this formula to reflect only the filtered data and not the entire column.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi,

Sumproduct and Subtotal can get incredibly confusing. Try this:

=(SUMPRODUCT(SUBTOTAL(3,OFFSET(H$28,ROW($H$28:$H$5076)-ROW($H$28),,1)),--($A$28:$A$5076=A2),$H$28:$H$5076))+(SUMPRODUCT(SUBTOTAL(3,OFFSET(I$28,ROW($I$28:$I$5076)-ROW($I$28),,1)),--($A$28:$A$5076=A2),$I$28:$I$5076))

Thanks :)
 
Upvote 0
Hi,

Sumproduct and Subtotal can get incredibly confusing. Try this:

=(SUMPRODUCT(SUBTOTAL(3,OFFSET(H$28,ROW($H$28:$H$5076)-ROW($H$28),,1)),--($A$28:$A$5076=A2),$H$28:$H$5076))+(SUMPRODUCT(SUBTOTAL(3,OFFSET(I$28,ROW($I$28:$I$5076)-ROW($I$28),,1)),--($A$28:$A$5076=A2),$I$28:$I$5076))

Thanks :)

Sweet that did the trick. Thank you very much!!
 
Upvote 0

Forum statistics

Threads
1,215,433
Messages
6,124,861
Members
449,195
Latest member
MoonDancer

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