LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Advanced filtering

the macro recorder is your friend. Recorded this. See clean up below
Sub Macro4()
'
' Macro4 Macro
' Macro recorded 7/2/2006 by Don Guillett
'

'
Range("A1").Select
Selection.AutoFilter
Selection.AutoFilter Field:=1, Criteria1:="2", Operator:=xlAnd
Selection.AutoFilter
End Sub

Sub Macro4cleande()
Range("A1").autoFilter Field:=1, Criteria1:="2", Operator:=xlAnd
do your stuff with the filtered cells see vba help index for special cells
and then visible.
range("a1").AutoFilter
End Sub


--
Don Guillett
SalesAid Software

"mutie" wrote in message
...
thats another good suggestion and seems to work. Unfortunately I have to
do a
similar operation about 8 times with different sets of data in the same
worksheet and then do the same with another 20 sets of worksheets. I'm
trying
to work out how to do it automatically, so that I can then create a macro.
The weird thing is, I can get the program to filter using
=D2<PERCENTILE(D2:D36,0.97)
So, D2 is the start of my data, D36 the end. I've put the formula in J2,
but
when I filter using this, it doesn't filter correctly!

"Don Guillett" wrote:

datafilterautofiltercustomleft window greater thanright window your
figure.

--
Don Guillett
SalesAid Software

"mutie" wrote in message
...
Hi there. I have a series of data from an experiment that I'm trying to
"trim" extreme results from. I have calcuated the 0.97 perecntile, but
I'm
wondering if there's a way to filter out allthe results above that
percentile. The help sheets are pretty confusing and not very well
constructed!






 
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 filtering on text and blanks dtencza Excel Discussion (Misc queries) 4 March 14th 06 01:07 AM
ADVANCED FILTERING IN EXCEL 2003 Colin Sandall Excel Discussion (Misc queries) 0 January 12th 06 05:34 PM
Advanced Filtering CFL Excel Worksheet Functions 3 June 8th 05 10:47 AM
Advanced Filtering Tony Excel Worksheet Functions 3 April 29th 05 11:48 AM
extracting numbers with no more than 8-digits using advanced filtering Gauthier Excel Worksheet Functions 10 October 29th 04 10:06 PM


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