How to hide the columns after using the filter?

chanshingkwan

New Member
Joined
Mar 1, 2023
Messages
1
Office Version
  1. 2007
Platform
  1. Windows
Dear ALL,

I would like to ask how can I I hide the columns after using the filter?
Either one question of both can be solved is ok for me, thank guys!

First of all, by using the worksheet below,

螢幕擷取畫面 (1).png


Let's use "A8" as the filter cell.
Then I would like filter out the Row 9.
Let's see and imagine there are both cells "D9" and "H9" have values.
What shall I do if I want to hide the columns without any value automatically?
Therefore, is it possible to unhide the column D and H, and hide the other columns after I filter out Row 9.

Or by using another worksheet,
螢幕擷取畫面 (2).png

In Column H, I had filtered the value in descending.
There are some values in Column H, I, J, L, M, but not Column K.
However, I would like to hide the column K automatically since there are no values in column K unless the row in Column H has no value.
Then, the column K may has value. (In the whole spreadsheet, all columns and all rows have at least one cell has a value.)
Is it possible to unhide the Column H, I, J, L, M but hide Column K automatically?

Thank you and looking for the solutions.

PS: I'm using the google drive.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,223,516
Messages
6,172,777
Members
452,477
Latest member
DigDug2024

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