filter and sub total

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi I want to filter the table below and then find the subtotal for that vendor. For example I want to filter vendor A and find the subtotal then filter vendor B and find the subtotal. Can I do that? I tried subtotal but did not work?
I tried =sum(b1:b10) but that would give me the total but the subtotal. Any idea please? Thank you.


[TABLE="width: 100"]
<tbody>[TR]
[TD]vendor[/TD]
[TD]amount[/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]33[/TD]
[/TR]
[TR]
[TD]c[/TD]
[TD]44[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
I think it will be
=SUBTOTAL(109,B1:B10)
as I believe it is only a sum of the visible cells required. 9 sums both the visible and hidden cells.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
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