How not to include values in the filter?

F_Ribeiro

New Member
Joined
Jan 14, 2021
Messages
32
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Good morning everybody!

I would like to know how to not include specific values in the filter criteria (0 and blanks for example). In short, data I don't want to work with.

This would avoid a repetitive effort on the spreadsheet I use and just now I thought about it, ha ha...
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
It's not clear (to me at least) what you mean, as I presume it's more complicated than just unticking 0 and 'Blanks' in the filter dropdowns?
 
Upvote 0
It's not clear (to me at least) what you mean, as I presume it's more complicated than just unticking 0 and 'Blanks' in the filter dropdowns?
This values are example. Basically, I would like to inform in the code which values I do not want to filter, if they are in a much smaller amount than those I want to display.
 
Upvote 0
This is the first time you have mentioned code...

If you only wish to exclude two values, it's pretty simple. There is no direct way to exclude more than that, but there are a few workarounds, such as:
- use an advanced filter; or
- create a list of valid values in code and filter for those; or
- use a formula column that can exclude the values you want.
 
Upvote 0
Solution
I believe I have solved the problem.

I didn't follow any of the alternatives you suggested, but I created an If inside a loop that checks if the cell's content is "0" or "blank", and then hides the line. It's not exactly what I wanted and it takes longer to load than a filter, but at least it automated that process. Thank you for responding, until next time.

F. Ribeiro
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,836
Members
449,096
Latest member
Erald

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