Filter tool removing/hiding cells outside the table

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
I have a table like the one below. I want to calculate sub total, sub salary etc.
So I selected cells beside the table and wrote subtotal functions. But the problem
When I filter any column, I might lose these cells as well (total count, total salary, min, max, average). How can I avoid that. Thank you so much.
[TABLE="width: 395"]
<colgroup><col span="5"><col></colgroup><tbody>[TR]
[TD]name[/TD]
[TD]sex[/TD]
[TD]dept[/TD]
[TD]salary[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]mary1[/TD]
[TD]f[/TD]
[TD]it[/TD]
[TD]75879[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]alex1[/TD]
[TD]m[/TD]
[TD]hr[/TD]
[TD]44295[/TD]
[TD][/TD]
[TD]total count[/TD]
[/TR]
[TR]
[TD]david1[/TD]
[TD]m[/TD]
[TD]sales[/TD]
[TD]66277[/TD]
[TD][/TD]
[TD]total salary[/TD]
[/TR]
[TR]
[TD]john1[/TD]
[TD]m[/TD]
[TD]marketing[/TD]
[TD]83008[/TD]
[TD][/TD]
[TD]max[/TD]
[/TR]
[TR]
[TD]aandy1[/TD]
[TD]m[/TD]
[TD]admin[/TD]
[TD]10243[/TD]
[TD][/TD]
[TD]min[/TD]
[/TR]
[TR]
[TD]liz1[/TD]
[TD]f[/TD]
[TD]sales[/TD]
[TD]58488[/TD]
[TD][/TD]
[TD]average[/TD]
[/TR]
[TR]
[TD]sarah1[/TD]
[TD]f[/TD]
[TD]marketing[/TD]
[TD]33784[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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