Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Joe Joe is offline
external usenet poster
 
Posts: 476
Default Advanced Filter using a range name as the criteria

I am running a macro and want to select records from a database that are
within a date range that the macro prompts for.
So macro gets STARTDATE and ENDDATE and has stored them in a date formatted
field.
STARTDATE=1/3/2008 and ENDATE=1/5/2008
The database is
Event Date Event Name
1/1/2008 Event 1
1/3/2008 Event 2
1/5/2008 Event 3
1/7/2008 Event 4

What is the criteria to use? I have tried "everything" but must have done
something wrong.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 857
Default Advanced Filter using a range name as the criteria

Hi,

If you are doing this in a macro, show us your code.

If not, your criteria are must look something like this

Event Date Event Date
=1/3/2008 <=1/5/2008


If this helps, please click the Yes button.

Cheers,
Shane Devenshire

"Joe" wrote in message
...
I am running a macro and want to select records from a database that are
within a date range that the macro prompts for.
So macro gets STARTDATE and ENDDATE and has stored them in a date
formatted
field.
STARTDATE=1/3/2008 and ENDATE=1/5/2008
The database is
Event Date Event Name
1/1/2008 Event 1
1/3/2008 Event 2
1/5/2008 Event 3
1/7/2008 Event 4

What is the criteria to use? I have tried "everything" but must have done
something wrong.


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
Advanced filter criteria Marvin Buzz Excel Discussion (Misc queries) 2 May 23rd 08 02:37 PM
Advanced filter criteria Phil C Excel Discussion (Misc queries) 4 April 10th 07 07:48 AM
Advanced Filter (Criteria + Blanks) SamuelT Excel Discussion (Misc queries) 4 July 5th 06 05:03 PM
Advanced filter and Criteria Range gearoid Excel Discussion (Misc queries) 2 July 20th 05 02:33 PM
"Criteria Range" in the "Data/Filter/Advanced Filter" to select Du TC Excel Worksheet Functions 1 May 12th 05 02:06 AM


All times are GMT +1. The time now is 11:53 PM.

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

About Us

"It's about Microsoft Excel"