Advanced filter criteria

P

Phil C

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
 
B

Bob Phillips

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)
 
P

Phil C

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
 
J

JMay

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...
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top