Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 94
Default Problem filtering by data 12/01/2002

Hi ,

I have data in 13 columns and the second column contains the "start dates".
The "start dates" are in the following format "26/09/2007" etc. [UK Date
format].
I need to filter for dates greater than "12/01/2002". So far I have been
unsuccessful. I have tried to reformat the "start date" column as date and as
text but I still cannot filter for "greater than" via the autofilter.
"12/01/2002" is not an actual date in the " start date" column.

I don't mind if I have to use a macro to get the required result.

Thanks




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Problem filtering by data 12/01/2002

Hi manfareed

See the tips below this macro
http://www.rondebruin.nl/copy5.htm#AutoFilter


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"manfareed" wrote in message ...
Hi ,

I have data in 13 columns and the second column contains the "start dates".
The "start dates" are in the following format "26/09/2007" etc. [UK Date
format].
I need to filter for dates greater than "12/01/2002". So far I have been
unsuccessful. I have tried to reformat the "start date" column as date and as
text but I still cannot filter for "greater than" via the autofilter.
"12/01/2002" is not an actual date in the " start date" column.

I don't mind if I have to use a macro to get the required result.

Thanks




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 94
Default Problem filtering by data 12/01/2002

Hi,

Sorry but I can't see anything which is specific to my query.

Thanks,

Manir

"Ron de Bruin" wrote:

Hi manfareed

See the tips below this macro
http://www.rondebruin.nl/copy5.htm#AutoFilter


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"manfareed" wrote in message ...
Hi ,

I have data in 13 columns and the second column contains the "start dates".
The "start dates" are in the following format "26/09/2007" etc. [UK Date
format].
I need to filter for dates greater than "12/01/2002". So far I have been
unsuccessful. I have tried to reformat the "start date" column as date and as
text but I still cannot filter for "greater than" via the autofilter.
"12/01/2002" is not an actual date in the " start date" column.

I don't mind if I have to use a macro to get the required result.

Thanks





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Problem filtering by data 12/01/2002

You can read this below the macro. Use the US mm/dd/yyyy date format

Use this to filter for all women born between 23 Feb 1947 and 7 May 1988 from the Netherlands and the USA
(column A, C and D in my example). I use two criteria in field 1 and 4 (2 is the maximum for AutoFilter)
rng.AutoFilter Field:=1, Criteria1:="=Netherlands", Operator:=xlOr, Criteria2:="=USA"
rng.AutoFilter Field:=3, Criteria1:="=F"
rng.AutoFilter Field:=4, Criteria1:="=02/23/1947" , _
Operator:=xlAnd, Criteria2:="<=05/07/1988" ' Use always the US mm/dd/yyyy format



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"manfareed" wrote in message ...
Hi,

Sorry but I can't see anything which is specific to my query.

Thanks,

Manir

"Ron de Bruin" wrote:

Hi manfareed

See the tips below this macro
http://www.rondebruin.nl/copy5.htm#AutoFilter


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"manfareed" wrote in message ...
Hi ,

I have data in 13 columns and the second column contains the "start dates".
The "start dates" are in the following format "26/09/2007" etc. [UK Date
format].
I need to filter for dates greater than "12/01/2002". So far I have been
unsuccessful. I have tried to reformat the "start date" column as date and as
text but I still cannot filter for "greater than" via the autofilter.
"12/01/2002" is not an actual date in the " start date" column.

I don't mind if I have to use a macro to get the required result.

Thanks





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 94
Default Problem filtering by data 12/01/2002



"Ron de Bruin" wrote:

You can read this below the macro. Use the US mm/dd/yyyy date format

Use this to filter for all women born between 23 Feb 1947 and 7 May 1988 from the Netherlands and the USA
(column A, C and D in my example). I use two criteria in field 1 and 4 (2 is the maximum for AutoFilter)
rng.AutoFilter Field:=1, Criteria1:="=Netherlands", Operator:=xlOr, Criteria2:="=USA"
rng.AutoFilter Field:=3, Criteria1:="=F"
rng.AutoFilter Field:=4, Criteria1:="=02/23/1947" , _
Operator:=xlAnd, Criteria2:="<=05/07/1988" ' Use always the US mm/dd/yyyy format



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"manfareed" wrote in message ...
Hi,

Sorry but I can't see anything which is specific to my query.

Thanks,

Manir

"Ron de Bruin" wrote:

Hi manfareed

See the tips below this macro
http://www.rondebruin.nl/copy5.htm#AutoFilter


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"manfareed" wrote in message ...
Hi ,

I have data in 13 columns and the second column contains the "start dates".
The "start dates" are in the following format "26/09/2007" etc. [UK Date
format].
I need to filter for dates greater than "12/01/2002". So far I have been
unsuccessful. I have tried to reformat the "start date" column as date and as
text but I still cannot filter for "greater than" via the autofilter.
"12/01/2002" is not an actual date in the " start date" column.

I don't mind if I have to use a macro to get the required result.

Thanks


Hi Ron,

I can't get it to filter for anything "greater than " but otherwise it
works. Also there is a lot of data in UK format. Is there a way to convert
them to US format i.e. from
dd/mm/yyyy to mm/dd/yyyy.

Thanks


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Problem filtering by data 12/01/2002

Only in the code use the US date format
No problem if the format in the worksheet is different

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"manfareed" wrote in message ...


"Ron de Bruin" wrote:

You can read this below the macro. Use the US mm/dd/yyyy date format

Use this to filter for all women born between 23 Feb 1947 and 7 May 1988 from the Netherlands and the USA
(column A, C and D in my example). I use two criteria in field 1 and 4 (2 is the maximum for AutoFilter)
rng.AutoFilter Field:=1, Criteria1:="=Netherlands", Operator:=xlOr, Criteria2:="=USA"
rng.AutoFilter Field:=3, Criteria1:="=F"
rng.AutoFilter Field:=4, Criteria1:="=02/23/1947" , _
Operator:=xlAnd, Criteria2:="<=05/07/1988" ' Use always the US mm/dd/yyyy format



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"manfareed" wrote in message ...
Hi,

Sorry but I can't see anything which is specific to my query.

Thanks,

Manir

"Ron de Bruin" wrote:

Hi manfareed

See the tips below this macro
http://www.rondebruin.nl/copy5.htm#AutoFilter


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"manfareed" wrote in message ...
Hi ,

I have data in 13 columns and the second column contains the "start dates".
The "start dates" are in the following format "26/09/2007" etc. [UK Date
format].
I need to filter for dates greater than "12/01/2002". So far I have been
unsuccessful. I have tried to reformat the "start date" column as date and as
text but I still cannot filter for "greater than" via the autofilter.
"12/01/2002" is not an actual date in the " start date" column.

I don't mind if I have to use a macro to get the required result.

Thanks


Hi Ron,

I can't get it to filter for anything "greater than " but otherwise it
works. Also there is a lot of data in UK format. Is there a way to convert
them to US format i.e. from
dd/mm/yyyy to mm/dd/yyyy.

Thanks

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
Excel 2002 filtering Brenda Excel Programming 3 May 25th 07 07:49 PM
Filtering problem Tim Walters[_2_] Excel Programming 2 December 15th 06 08:34 AM
Excel 2002: Problem in pasting copied data to Coda Financial Mr. Low Excel Discussion (Misc queries) 0 November 13th 06 06:10 PM
Excel 2002: Problem in pasting copied data to Coda Financial Acco Mr. Low Excel Discussion (Misc queries) 0 November 13th 06 01:47 PM
Excel 2002 - Filtering numbers Mike Faulkner Excel Discussion (Misc queries) 2 August 17th 05 12:55 PM


All times are GMT +1. The time now is 07:13 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"