Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default using advanced filter for several of fields

hi,
i want to use the advanced filter to populate more then one field is
it posible?
for now i have an option to filter data based on one field
for example if i have
AB
AB
AC
AC
AC
AC
AD
the result will be
AB
AC
AD
but i'm trying to have is for example if i have
AB X1
AB X1
AC X2
AC X2
AC X2
AC X2
AD X3
to get
AB X1
AC X2
AD X3

is it posible and if yes if for example i have alot of fields and i
want to to use specific what should be done?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default using advanced filter for several of fields

not sure if this would do what you want or not, but i'll throw it out.

assuming your examples are in columns A and B.

enter this formula in Column C:
=A2& " " &B2
and drag it down

then filter on column C

just a thought

--


Gary


"thread" wrote in message
...
hi,
i want to use the advanced filter to populate more then one field is
it posible?
for now i have an option to filter data based on one field
for example if i have
AB
AB
AC
AC
AC
AC
AD
the result will be
AB
AC
AD
but i'm trying to have is for example if i have
AB X1
AB X1
AC X2
AC X2
AC X2
AC X2
AD X3
to get
AB X1
AC X2
AD X3

is it posible and if yes if for example i have alot of fields and i
want to to use specific what should be done?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 158
Default using advanced filter for several of fields

On Sep 4, 5:36*pm, thread wrote:
hi,
i want to use the advanced filter to populate more then one field is
it posible?
for now i have an option to filter data based on one field
for example if i have
AB
AB
AC
AC
AC
AC
AD
the result will be
AB
AC
AD
but i'm trying to have is for example if i have
AB X1
AB X1
AC X2
AC X2
AC X2
AC X2
AD X3
to get
AB X1
AC X2
AD X3

is it posible and if yes if for example i have alot of fields and i
want to to use specific what should be done?


Hello:

Not sure what you are intending with this, but if you are looking for
unique values in each of the columns, you can use the following code.
I advise changing the Range to the range of your data, and the Columns
values to the columns containing the fields you want to filter. Right
now it is only 2 columns (one for each advancedfilter) but if you want
more, just copy the 3 lines of code and change the column value to the
ones you want filtered.

Regards,

Steven

Sub MultiFilt()

' Duplicate this and change the column/Range values for every column
you want to filter
Range("A1:Z100").Columns(1).AdvancedFilter _
Action:=xlFilterInPlace, _
Unique:=True

Range("A1:Z100").Columns(2).AdvancedFilter _
Action:=xlFilterInPlace, _
Unique:=True

End Sub
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 for blank fields in multiple rows ronlaforce Excel Discussion (Misc queries) 3 June 9th 09 06:32 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 09:54 AM.

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"