Autofilter - toggle between selected/unselected items

JugglerJAF

Active Member
Joined
Feb 17, 2002
Messages
297
Office Version
  1. 365
Platform
  1. Windows
Say I have a data table and have applied an auto filter to Column A. That column contains hundreds of rows, but only 5 unique entries, let's call them Alpha, Bravo, Charlie, Delta, and Echo. I've applied an auto filter to only show those rows matching the criteria Alpha or Delta. So far, so good...

What I'm after is a method (some obscure keyboard shortcut I'm not aware of, or a VBA solution) that would enable me to "toggle" the selected values in the auto filter of the column containing the active cell.

So in this example, A1 would be selected, and I need to change filter criteria on column A from Alpha/Delta, to Bravo/Charlie/Echo.

I can't hard code it to those values, as the actual entries differ depending on which column I'm actually filtering on, but I'm looking for a way of changing everything that's selected to "not selected" and everything that's not selected to be selected.

I'm not sure this is possible, but it would make my life easier if there was a way to do it.

Any suggestions?
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,224,825
Messages
6,181,189
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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