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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,066
Office Version
  1. 365
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.
 

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,887
Hi terryc

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

Hope this helps
PGC
 

Forum statistics

Threads
1,176,369
Messages
5,902,738
Members
434,990
Latest member
Peter Jeffrey Gale

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
Top