changing a sumif formula so that it recognises filtered data

Corleone

Well-known Member
Joined
Feb 2, 2003
Messages
841
Office Version
  1. 365
Hi - I would like to change the formula below so that when the source date is filtered it only returns the sum of what is filtered

=SUMIFS(UPDATE!AB$2:AB$1081,UPDATE!$P$2:$P$1081,$C2)

I tried this as a potential solution
=SUMPRODUCT(SUBTOTAL(109,OFFSET(UPDATE!AB$2,ROW(UPDATE!AB$2:UPDATE!AB$1081)-ROW(UPDATE!AB$2),,1,1)),(UPDATE!$P$2:$P$1081=$C2),UPDATE!AB$2:AB$1081)

but it just returns 0 even if all the source data is unfiltered


Thanks
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
I also tried =SUBTOTAL(109, 'UPDATE'!AB$2:AB$1081*('UPDATE'!$P$2:$P$1081=$C2))
but im just getting an error message

1693653200937.png
 
Last edited:
Upvote 0
If you create a helper column on the update sheet using
Excel Formula:
=SUBTOTAL(103,P2)
You can then use
Excel Formula:
=SUMIFS(UPDATE!AB$2:AB$1081,UPDATE!$P$2:$P$1081,$C2,UPDATE!AC$2:AC$1081,1)
change the AC to refer to the helper column.
 
Upvote 0
Solution
Once again you have produced the goods - I must owe you at least a crate of beers now
Much appreciated

Thanks
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,289
Members
449,149
Latest member
mwdbActuary

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