Extract column total after filtering

sofas

Well-known Member
Joined
Sep 11, 2022
Messages
559
Office Version
  1. 2021
  2. 2019
Platform
  1. Windows
Hello, I would like to extract the sum of column a after filtering. I tried to put the following formula, but to no avail =SUBTOTAL(109;a5:a1000)

Note that the values in column a are fetched from another sheet via the @Index formula
 
=SUBTOTAL(109,Range) is the correct method. 109 is the SUM of visible cells.
1717016662663.png
1717016689699.png
 
Upvote 0

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.
I suspect that the subtotal functions ignores cells that contain the aggregate function.
Are you still using xl2019 or do you have a newer version?
 
Upvote 0
I suspect that the subtotal functions ignores cells that contain the aggregate function.
Are you still using xl2019 or do you have a newer version?
Currently using the 2021 version
 
Upvote 0
In that case remove all the formulas from C5 down & across & put this in C5 only
Excel Formula:
=FILTER('All Customers'!$C$4:$G$1000,'All Customers'!$E$4:$E$1000=REPLACE(CELL("filename",$A$4),1,FIND("]",CELL("filename",$A$4)),""))
 
Upvote 0
Solution
In that case remove all the formulas from C5 down & across & put this in C5 only
Excel Formula:
=FILTER('All Customers'!$C$4:$G$1000,'All Customers'!$E$4:$E$1000=REPLACE(CELL("filename",$A$4),1,FIND("]",CELL("filename",$A$4)),""))
Very cool thank you
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,157
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