Auto Filter

pauleapo

Board Regular
Joined
Nov 23, 2005
Messages
73
What i am after is a way of filtering out data automatically.

Range K8:k301 contains dates, which i only want to show when equal to or greater than cell C1 or is less than cell C2.

The dates in Cells c1 and c2 change on a daily basis so i am just trying to automate this task a little, I know i can set up auto filters and keep changing the criteria but do not want to do it this way.

Hope this makes sense and hope it is possible?

Cheers
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,010
Office Version
  1. 365
You can either:

1) Use macros to update the greater than and less than criteria in your autofilter
2) use an advanced filter (with a worksheet_change event macro if you'd like to automatically update your filter if you change C1/C2)
or 3) add a column to your data which calculates J8=AND(K8>$C$1,K8<$C$2), copied down and filter based on column J
 

Forum statistics

Threads
1,136,309
Messages
5,674,998
Members
419,541
Latest member
freddyboots

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