Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Filter, sort, filter and then display

This is the scenario. I need to filter the worksheet data with a criteria that is in Column A
After that I need to sort the values in Column B in ascending order then display those values in another shee
Those values should also be unique so if there are duplicate entries, the duplicate is discarded. How can I do that in VBA


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default Filter, sort, filter and then display

Hi Andrew,

just one thought: A sorted list is always sorted no matter if it is filtered
or not. Turn screenupdating off, sort your list according to A *and* B,
filter, do whatever you like.

arno

This is the scenario. I need to filter the worksheet data with a criteria

that is in Column A,
After that I need to sort the values in Column B in ascending order then

display those values in another sheet
Those values should also be unique so if there are duplicate entries, the

duplicate is discarded. How can I do that in VBA?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Filter, sort, filter and then display

this page on John Walkenbach's site can be adapted to what you want to do

http://j-walk.com/ss/excel/tips/tip47.htm

Just add a check for your filter condition. You don't actually have to
apply a filter.

Then write the contents of the collection to the cells in the destination
location rather than to a listbox as shown in the code.

--
Regards,
Tom Ogilvy

"Andrew" wrote in message
...
This is the scenario. I need to filter the worksheet data with a criteria

that is in Column A,
After that I need to sort the values in Column B in ascending order then

display those values in another sheet
Those values should also be unique so if there are duplicate entries, the

duplicate is discarded. How can I do that in VBA?





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
Sort/Filter TimBCC Excel Discussion (Misc queries) 2 March 17th 09 03:50 PM
Filter & Sort Karin Excel Worksheet Functions 3 September 11th 08 09:10 PM
Sort & Filter Chris Wisehart Excel Discussion (Misc queries) 3 August 1st 08 07:30 PM
Filter, sort and sum Amy Excel Discussion (Misc queries) 2 March 22nd 07 07:46 PM
Filter and sort afdmello Excel Discussion (Misc queries) 1 June 14th 05 08:02 PM


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