Combining SUMIFS and SUBTOTAL

tjnich04

New Member
Joined
Dec 19, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I am trying to have my sumifs only display the data that is filtered. right now, when i filter the data, my sumifs still just show the total for all the data, regardless of filter. (im a rookie here)

my sumifs equation is =SUMIFS(Q8:Q,E8:E,"passing yards",G8:G,"over")

i just want this to change based on the filter applied to the data. i cant get it to combine with SUBTOTAL.

please help a newbie here :)
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Welcome to MrExcel :)

The normal method would be to apply a subtotal formula to each row in a new column using
Excel Formula:
=SUBTOTAL(9,Q8)
then totaling that column with sumifs.

I don't have office 365 to test this theory, but I think that something like this might work.
Excel Formula:
=SUM(FILTER(Q8:Q,(E8:E="passing yards")*(G8:G="over"),0))
As I said above, I'm not able to test this so I could be way off the mark on the theory.

Hope this helps.
 
Upvote 0
Welcome to MrExcel :)

The normal method would be to apply a subtotal formula to each row in a new column using
Excel Formula:
=SUBTOTAL(9,Q8)
then totaling that column with sumifs.

I don't have office 365 to test this theory, but I think that something like this might work.
Excel Formula:
=SUM(FILTER(Q8:Q,(E8:E="passing yards")*(G8:G="over"),0))
As I said above, I'm not able to test this so I could be way off the mark on the theory.

Hope this helps.
i get a message saying #N/A
 
Upvote 0
i did it by the adding a new column way and it works, so thats good enough! TY!
 
Upvote 0

Forum statistics

Threads
1,213,494
Messages
6,113,986
Members
448,538
Latest member
alex78

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