Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Filter/Advanced Filter

Hi All,

How many criteria I can Use in a Filter/Advanced Filter.

for Eg. If i want to use six Criteria A=Ab, B=xy, C=gh,
D=nd, E=cz F=bc how can I do this using Code?

TIa

Soniya


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Filter/Advanced Filter

Hi Soniya

Do you want to filter the six Criteria in the same column

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Soniya" wrote in message ...
Hi All,

How many criteria I can Use in a Filter/Advanced Filter.

for Eg. If i want to use six Criteria A=Ab, B=xy, C=gh,
D=nd, E=cz F=bc how can I do this using Code?

TIa

Soniya




  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Filter/Advanced Filter

Hi Ron,

Different Columns

Thanks

-----Original Message-----
Hi Soniya

Do you want to filter the six Criteria in the same

column

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Soniya" wrote in

message ...
Hi All,

How many criteria I can Use in a Filter/Advanced

Filter.

for Eg. If i want to use six Criteria A=Ab, B=xy, C=gh,
D=nd, E=cz F=bc how can I do this using Code?

TIa

Soniya




.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Filter/Advanced Filter

Hi

Do you want to do it manual or with code ?

Manual :
With your data in A5:F30 for example

Copy the header cells in A1:F1
Below each header enter your criteria

Use this criteria range then A1:F2 in Dataadvanced filter

If you want a code example post back


--
Regards Ron de Bruin
http://www.rondebruin.nl


wrote in message ...
Hi Ron,

Different Columns

Thanks

-----Original Message-----
Hi Soniya

Do you want to filter the six Criteria in the same

column

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Soniya" wrote in

message ...
Hi All,

How many criteria I can Use in a Filter/Advanced

Filter.

for Eg. If i want to use six Criteria A=Ab, B=xy, C=gh,
D=nd, E=cz F=bc how can I do this using Code?

TIa

Soniya




.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Filter/Advanced Filter

With code try this

Enter the headers and criteria in this range first
Range("A1:F2")


Sub test()
Dim CriteriaRng As Range
Dim rng As Range
Set rng = Range("A5:F30") ' first row is the header row
Set CriteriaRng = Range("A1:F2")
rng.AdvancedFilter Action:=xlFilterInPlace, _
CriteriaRange:=CriteriaRng, Unique:=False
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Ron de Bruin" wrote in message ...
Hi

Do you want to do it manual or with code ?

Manual :
With your data in A5:F30 for example

Copy the header cells in A1:F1
Below each header enter your criteria

Use this criteria range then A1:F2 in Dataadvanced filter

If you want a code example post back


--
Regards Ron de Bruin
http://www.rondebruin.nl


wrote in message ...
Hi Ron,

Different Columns

Thanks

-----Original Message-----
Hi Soniya

Do you want to filter the six Criteria in the same

column

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Soniya" wrote in

message ...
Hi All,

How many criteria I can Use in a Filter/Advanced

Filter.

for Eg. If i want to use six Criteria A=Ab, B=xy, C=gh,
D=nd, E=cz F=bc how can I do this using Code?

TIa

Soniya




.







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 - filter rows < jaws4518 Excel Discussion (Misc queries) 3 November 1st 06 05:48 PM
Why won't advanced filter return filter results? jaws4518 Excel Worksheet Functions 5 September 12th 06 06:11 PM
How do I use advanced filter to filter for blank cells? Monique Excel Discussion (Misc queries) 2 March 21st 06 06:43 PM
"Criteria Range" in the "Data/Filter/Advanced Filter" to select Du TC Excel Worksheet Functions 1 May 12th 05 02:06 AM
advanced filter won't allow me to filter on bracketed text (-456.2 LucianoG Excel Discussion (Misc queries) 1 December 6th 04 08:38 PM


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