Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Candy
 
Posts: n/a
Default Excel auto filtering to find a range of dates in a list

Please Help! I've tried all morning to auto filter a range of dates using
"greater than or equal to" and/or "but less than." I've tried every scenario
the auto filter offers with no luck. Out of the twelve months listed for
birthdays, I simply want to get all of the February birth dates only. So, for
example, I choose "is greater than or equal to 1/1 and/or "is less than or
equal to 3/1. With those perimeters chosen, I would expect to get all of the
2/ or February dates!

Nothing I do gets this list filtered. I'm soooooo frustrated! Can anyone
help?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Pete
 
Posts: n/a
Default Excel auto filtering to find a range of dates in a list

It might be easier to use a helper column (i.e. another column next to
your data in which you can add a formula). I would suggest a formula
such as:

=MONTH(A2)

assuming your dates start in A2. Copy the formula down, and use this
column to filter looking for months (obviously, February is 2).

Hope this helps.

Pete

  #3   Report Post  
Posted to microsoft.public.excel.misc
Art Farrell
 
Posts: n/a
Default Excel auto filtering to find a range of dates in a list

Hi Candy,

If you're using the Custom filter box, for February use 2/1/2006 for the
first entry and 3/1/2006 for the second. If you're using VBA you can do it
this way:

.AutoFilter Field:=3, Criteria1:="=" & CDate(Range("M1")), _
Operator:=xlAnd, Criteria2:="<" & CDate(Range("N1"))
where M1 and N1 hold your dates. Or:

.AutoFilter Field:=3, Criteria1:="=" & CDate("2/1/06"), _
Operator:=xlAnd, Criteria2:="<" & CDate("3/1/06")

For the manual method you need the full year spelled out.

CHORDially,
Art Farrell

"Candy" wrote in message
...
Please Help! I've tried all morning to auto filter a range of dates using
"greater than or equal to" and/or "but less than." I've tried every

scenario
the auto filter offers with no luck. Out of the twelve months listed for
birthdays, I simply want to get all of the February birth dates only. So,

for
example, I choose "is greater than or equal to 1/1 and/or "is less than or
equal to 3/1. With those perimeters chosen, I would expect to get all of

the
2/ or February dates!

Nothing I do gets this list filtered. I'm soooooo frustrated! Can anyone
help?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
where can I find the Auto Sum feature on Excel Lexus841 Excel Worksheet Functions 1 January 24th 06 10:00 PM
Where do I find the Auto Numbering icon Button for excel? holdfastchris Excel Discussion (Misc queries) 1 January 23rd 06 03:17 PM
Find dates in a range; then sum values in that range by a criteria Anders Excel Discussion (Misc queries) 4 October 21st 05 03:41 PM
Stop Excel Rounding Dates leinad512 Excel Discussion (Misc queries) 1 April 20th 05 04:19 PM
Excel Auto Filter: WHY'S SORT @ TOP OF LIST? WHEN I KEY TO "SHOW . Dan W Excel Worksheet Functions 0 December 1st 04 03:53 PM


All times are GMT +1. The time now is 09:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"