Filters and Subtotal(9,A1:A1000)

gheyman

Well-known Member
Joined
Nov 14, 2005
Messages
2,340
Office Version
  1. 365
Platform
  1. Windows
Is there a way to create the type of formual that "Subtotal" is (Where it does not include filtered rows in its total) with a SumIf Formula?

I want the SumIf formula to only add the values where its corresponding cell in column E = Yes. But I dont want the total to include the row where E is Yes, but the column is hidden.

Hope thats clear enough.

Thanks
Greg
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Is there a way to create the type of formual that "Subtotal" is (Where it does not include filtered rows in its total) with a SumIf Formula?

I want the SumIf formula to only add the values where its corresponding cell in column E = Yes. But I dont want the total to include the row where E is Yes, but the column is hidden.

Hope thats clear enough.

Thanks
Greg

Which range do you want to sum while AutoFilter is on?
 
Upvote 0
I am looking down column E9:E1000 for "Yes" and totaling value from column G9:G1000

I just used A as an example in my explaination. E and G are the actual columns being used in the formula
 
Upvote 0
I am looking down column E9:E1000 for "Yes" and totaling value from column G9:G1000

I just used A as an example in my explaination. E and G are the actual columns being used in the formula

Try...

=SUMPRODUCT(SUBTOTAL(9,OFFSET(G9,ROW(G9:G1000)-ROW(G9),,1)),--(E9:E1000="Yes"))
 
Upvote 0
Thanks Very much.

Both samples worked. Two approaches and both come up with the same answer.

I need to do my homework on SUMProduct.
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,747
Members
448,989
Latest member
mariah3

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