Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default How can I filter a list with VBA?

Hi,
I have a column of dates in no particular order. Some dates are
repeated over and over.
I want to return a list of all the different dates in ascending order
to the next adjacent column.
For example;

Dates Result
16/10/2008 12/10/2008
16/10/2008 13/10/2008
16/10/2008 15/10/2008
15/10/2008 16/10/2008
15/10/2008
12/10/2008
13/10/2008
16/10/2008
12/10/2008
16/10/2008

Thank you for your help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default How can I filter a list with VBA?

Use Data Filter Advanced Filters. Indicate that you want to copy the data to
another location (click on the cell where you want it to go) and also make
sure you check the box "Unique Records Only". You don't need a criteria
range specified.

Kevin

"ChipButtyMan" wrote:

Hi,
I have a column of dates in no particular order. Some dates are
repeated over and over.
I want to return a list of all the different dates in ascending order
to the next adjacent column.
For example;

Dates Result
16/10/2008 12/10/2008
16/10/2008 13/10/2008
16/10/2008 15/10/2008
15/10/2008 16/10/2008
15/10/2008
12/10/2008
13/10/2008
16/10/2008
12/10/2008
16/10/2008

Thank you for your help.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default How can I filter a list with VBA?

Sorry I didn't give it to you in VBA (misread your post) but I'd just record
the advanced filter and take a look at the result.

Kevin

"dunnerca" wrote:

Use Data Filter Advanced Filters. Indicate that you want to copy the data to
another location (click on the cell where you want it to go) and also make
sure you check the box "Unique Records Only". You don't need a criteria
range specified.

Kevin

"ChipButtyMan" wrote:

Hi,
I have a column of dates in no particular order. Some dates are
repeated over and over.
I want to return a list of all the different dates in ascending order
to the next adjacent column.
For example;

Dates Result
16/10/2008 12/10/2008
16/10/2008 13/10/2008
16/10/2008 15/10/2008
15/10/2008 16/10/2008
15/10/2008
12/10/2008
13/10/2008
16/10/2008
12/10/2008
16/10/2008

Thank you for your 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
Formula (not adv. filter) to list unique values from list Brian Excel Worksheet Functions 3 May 12th 09 04:33 AM
filter: how to print filter list options in dropdown box help please Excel Discussion (Misc queries) 2 October 17th 07 01:53 AM
How to filter list from pre-existing list mrwawa Excel Discussion (Misc queries) 1 October 13th 06 07:46 PM
Filter the results of a list based on a previous vlookup against the same list Mizpah Excel Worksheet Functions 2 August 18th 06 10:28 AM
How to filter a 2nd list based on selection in 1st list. ImOk Excel Programming 1 July 19th 06 06:54 AM


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