Find lowest date in filtered list

shadow12345

Well-known Member
Joined
May 10, 2004
Messages
1,238
Hi,

I am creating a filtered list using the autofilter. I would like to know how I can select the lowest date in column B in the filter.

I tried setting it but every month it becomes a different month and stops working.

Any Ideas anyone?
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Try

=SUBTOTAL(5,B1:B100)

Change the range to match yours.
 
Upvote 0
How could I apply that to my filter?

I am setting it using this.

Code:
Sub Macro2()
'
' Macro2 Macro
'

'
    Rows("1:1").Select
    Selection.AutoFilter
    ActiveSheet.Range("$A$1:$AH$841").AutoFilter Field:=2, Criteria1:= _
        "2011-04-20"
    Range("B2").Select
End Sub
 
Last edited:
Upvote 0
Sorry, I misread your question, thought you wanted to return the lowest date after the data had been filtered.

Try

Code:
Sub Macro2()
    ActiveSheet.Range("A1:AH841").AutoFilter Field:=2, Criteria1:="1", Operator:=xlBottom10Items
End Sub
 
Upvote 0
is the correct sheet active?

are the dates in column B in a valid excel format?

That error should only happen if there is not at least 1 valid date in column B
 
Upvote 0
Select the whole list,

Data > Text to columns > Finish ** Don't click Next, just Finish **

That will do them all at once.
 
Upvote 0
The way I would do this, probably not the best way, is to have a cell somewhere that shows what the minimum value is, using
=MIN()
and use that to drive the setting of the filter criteria.
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

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