Subtotal after filtering

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
I have a table below, when I filter Dept column then I go to Home-->Auto Sum-->Sum, excel will insert Subtotal (9,Range) which is fine but when I select any other function except the Sum for example Average, then excel will insert the average function Average(Range) but not Subtotal(1, Range). Why only when I select Sum excel will insert Subtotal()? Thank you.

Book1
ABC
1NameDept Salary
2MaryHR45841
3JohnHR56885
10SueHR72574
12175300
Sheet1
Cell Formulas
RangeFormula
C12C12=SUBTOTAL(9,C2:C11)
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Are you using an Excel Table ?
If you are you should turn on the Total Row. Table Design > Total Row
Then instead of typing a formula use the drop down arrow and pick the function you want to apply.
The functions listed will use their subtotal counterpart.


1624869036555.png
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,893
Members
449,097
Latest member
dbomb1414

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