ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Advanced filter criteria (https://www.excelbanter.com/excel-discussion-misc-queries/137783-advanced-filter-criteria.html)

Phil C

Advanced filter criteria
 
Hi Guys

I set up a criteria range in connection with advanced filter.
Is there an OR syntax for a criteria?
I am trying to enter "Black" OR "Purple" but no joy.
Do you have to put 2 rows in the criteria range??

Thanks for your help

Phil



Bob Phillips

Advanced filter criteria
 
Yes, one value on one row, the next on the following, and then include all 3
cells (inc. header) in the criteria.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Phil C" wrote in message
...
Hi Guys

I set up a criteria range in connection with advanced filter.
Is there an OR syntax for a criteria?
I am trying to enter "Black" OR "Purple" but no joy.
Do you have to put 2 rows in the criteria range??

Thanks for your help

Phil





Phil C

Advanced filter criteria
 
Many thanks Bob

I knew that was lurking at the back of my brain somewhere!
Could have used custom autofilter, of course, but this method is more
flexible and you can save the 'query'.

Phil


"Bob Phillips" wrote in message
...
Yes, one value on one row, the next on the following, and then include all
3 cells (inc. header) in the criteria.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Phil C" wrote in message
...
Hi Guys

I set up a criteria range in connection with advanced filter.
Is there an OR syntax for a criteria?
I am trying to enter "Black" OR "Purple" but no joy.
Do you have to put 2 rows in the criteria range??

Thanks for your help

Phil







JMay

Advanced filter criteria
 
Seems like In the Case of **OR** in advance filtering
one has to Stair-Case Their Criteria

Criteria Range (would look like so) J1:K3:
J K
1 Color Color << repeated twice in separate columns
2 Black
3 Purple

Just my 2 Cents...



"Phil C" wrote in message
:

Many thanks Bob

I knew that was lurking at the back of my brain somewhere!
Could have used custom autofilter, of course, but this method is more
flexible and you can save the 'query'.

Phil


"Bob Phillips" wrote in message
...
Yes, one value on one row, the next on the following, and then include all
3 cells (inc. header) in the criteria.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Phil C" wrote in message
...
Hi Guys

I set up a criteria range in connection with advanced filter.
Is there an OR syntax for a criteria?
I am trying to enter "Black" OR "Purple" but no joy.
Do you have to put 2 rows in the criteria range??

Thanks for your help

Phil






challa prabhu

Advanced filter criteria
 
Hi

Copy all the columns to a different location in the Excel sheet. This
is basically to run an advance query which will fetch all the records in the
excel sheet even if you have misspled while typing.

Assuming that you have copied all the columns to a single spread sheet, you
know the column heading now, save the excel sheet.

Now I wiil be using the Advance filtering techniques so that all the column
information are retrieved even if the typed cells are misspelled, which
normally is not the case when you do a simple filtering technique. The
filtered values may not be correct.

To retieve the values;

1. Select all records and the column headings and define a name for the
range List. This is the List range name.
2. Select all column headings and paste in a seperate row anywhere in the
spreadsheet.
2. Select the pasted column heading along with an three empty row and define
a
name. This is the criteria range name.

Note: You can specify more criteira in addition rows.

3. Define a criteria on the second row for all columns, if necessary. For
example S* will display all details specific to "S'.
4. Click Data- Filter- Advanced Filter
5. Type the List name
6. Type the Criteria Name
7. Click copy to another location option - Mandatory
8. Click Copy to
9. Click the cell below the criteria range

All data will be displayed specific to the query you requested. This is very
usefull if the spreadsheet data are mistyped or mis-spelled. Now you have
done a database funtion on your excle spread sheet.

Challa Prabhu


"Phil C" wrote:

Hi Guys

I set up a criteria range in connection with advanced filter.
Is there an OR syntax for a criteria?
I am trying to enter "Black" OR "Purple" but no joy.
Do you have to put 2 rows in the criteria range??

Thanks for your help

Phil





All times are GMT +1. The time now is 06:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com