Inverse / Reverse of the filtered items

nabeelzz

Board Regular
Joined
Sep 23, 2014
Messages
69
good day all,

i need some macro to show me the reverse of current applied filter.
For example

i have a table and one column in table shows Dep A, Dep B, Dep C, Dep D etc.
i apply filter on this column for Dep A and Dep C..... So Dep B and Dec D will be hidden.
From here, i need a macro which will show me Dep B and Dep D which were previously filtered out (hide/filter out Dep A and Dep C).

Assume i have a lot of departments then its a pain to go back and see the inverse of what you previously filtered.

But that's not completely it.

Further, assume that i have applied a filter in Col A and then applied further filter in Col C. Now i want to see the reverse of applied filter for Col C only, not for Col A. Col A's applied filter should be intact.

Saying it another way, that i would like to invert the applied filter for the column in which i select a cell, but not touch other applied filters in Columns other than the selected cell.

i hope i explained myself properly.

Any help is much appreciated.
 
Glad to help & thanks for the feebdack
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi @Fluff I read all the comments and it seems to be working for others. But for me, I getting and error and when I click on debug, it's taking me to below line:
VBA Code:
With Ws.AutoFilter.Filters.item(ActiveCell.Column)

My file in not macro enabled. I have pasted my code in personal macrobook in a module.

Can you please help me. Meanwhile I'll try something from my end.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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