Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Filter on multiple criteria, same cell

I'm using code linked from this forum (I can't remember exactly the website,
but the filename I got was DataValMultiSelect.xls)

I can get it to return the user selection to the offset cell, no problem.
I have changed the delimiter to ;

What I want to be able to do however is run a filter based on ANY of the
terms selected, rather than ALL of the terms.

Example:

Drop Down 1 has the values:
John, Jack, Steve, Bill, Tom, Jason
Selecting John, Steve and Jason places: John;Steve;Jason in the offset cell

These values are found on multiple occasions in column 1 of the data source.

Drop Down 2 has the values:
Julie, Sally, Kate, Kylie, Nancy, Kathy
Selecting Sally, Kate & Kathy places: Sally;Kate;Kathy in the offset cell

These values are found on multiple occasions in column 2 of the data source.

When I run the filter, I want to be able to find all records that have John,
Steve OR Jason in the first column AND Sally, Kate or Kathy in the second.

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Filter on multiple criteria, same cell

Instead of adding all the selections to one cell, use the example that
puts the selections in the next available row in the adjacent column.

Then, in the criteria range for the advanced filter, leave the heading
cells blank.
In the first criteria cell below the headings, use a formula to check
for the names, e.g.:
=COUNTIF(O:O,F2)
where the list of selections is in column O, and the first name in the
main table is in F2.
Do the same in the cell to the right, for the second column of names.

When you run the advanced filter, select the blank heading cells and the
formula cells as the criteria range.

D Zandveld wrote:
I'm using code linked from this forum (I can't remember exactly the website,
but the filename I got was DataValMultiSelect.xls)

I can get it to return the user selection to the offset cell, no problem.
I have changed the delimiter to ;

What I want to be able to do however is run a filter based on ANY of the
terms selected, rather than ALL of the terms.

Example:

Drop Down 1 has the values:
John, Jack, Steve, Bill, Tom, Jason

Selecting John, Steve and Jason places: John;Steve;Jason in the offset cell


These values are found on multiple occasions in column 1 of the data source.

Drop Down 2 has the values:
Julie, Sally, Kate, Kylie, Nancy, Kathy

Selecting Sally, Kate & Kathy places: Sally;Kate;Kathy in the offset cell


These values are found on multiple occasions in column 2 of the data source.

When I run the filter, I want to be able to find all records that have John,
Steve OR Jason in the first column AND Sally, Kate or Kathy in the second.

Any ideas?



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

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
Using Multiple Criteria to filter for multiple users fgwiii[_2_] Excel Worksheet Functions 5 June 11th 09 05:09 PM
Filter duplicates by multiple criteria Linda \(RQ\) New Users to Excel 0 April 10th 09 02:38 AM
Filter Multiple Columns on Multiple Criteria and count the last co LBitler Excel Worksheet Functions 2 February 12th 09 08:36 PM
Multiple Filter Criteria in Excel VBA D Zandveld Excel Programming 4 February 28th 07 09:16 AM
FILTER USING MULTIPLE CRITERIA vdefilippo Excel Programming 3 September 21st 06 06:46 PM


All times are GMT +1. The time now is 11:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"