Autofilter problem

terryc

Board Regular
Joined
Jun 27, 2006
Messages
66
I have a list of data that I want to filter using the Autofilter command.

One column contains numbers from 1-96. I want to filter out all numbers apart from those beginning with 1 and then moving up in increments of 4, i.e. 1, 5, 9, 13, 17, 21, etc.

If I go to the custom autofilter, I can put "equals" 1 AND "equals" 5, but obviously I can't go any further as I can only put 2 conditions in.

Is there any way of doing this? Something along the lines of:
"equals" 1 OR 5 OR 9 OR 13 OR 17 OR 21 ......etc.?
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
In a new column, use =MOD(A2-1,4)=0 and copy down. Filter this new column for TRUE to show your 1,5,9,13,17, etc. values or FALSE to show everything else.
 
Upvote 0
Hi terryc

Another way is to use Advanced Filter instead of Autofilter and use Peter's formula as criterion.

Hope this helps
PGC
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,839
Members
449,193
Latest member
MikeVol

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