Advanced Filter is the most powerful way of filtering data in Excel.
It takes a lot more work to set up than Autofilter, but goes beyond
Autofilter's limitations.
The advantages to using Advanced Filter include:
The advantages to using Advanced Filter include:
- Run more complex filters
- Copy filtered results to another area on the worksheet
- Filter for unique records
Apply an Advanced Filter
- Copy the desired column labels from the range to be filtered to the first row of the criteria range The example below is being setup to filter for the products in the list with a stock level of less than 20 and a stock value of more than £200. For this to work I would need the Stock Level and Stock Value labels in the criteria range.
- Enter the criteria you want to filter for below the criteria labels
- Criteria entered on the same line must occur in the same record (And logic)
- Criteria entered on separate lines must occur in different records (Or logic)
- Criteria headings with no data under them are not filtered
- Duplicate criteria headings allow more than one set of criteria to be entered i.e. for a date column you may use less than and specific date and greater than a specific date under separate criteria headings
- Click Data > Filter and then Advanced Filter from the submenu The Advanced Filter dialogue box appears
- Select either the Filter the list, in-place (like Autofilter) or Copy to another location option button
- In List range, select the range of data to be filtered
- In Criteria range, select the criteria range
- If copying the filter results to another location, enter the range you wish to copy to in the Copy to field
- Click Ok
In this example column labels have also been copied into cells H7:I7. This is optional, and is being used to extract the filtered data to. In this example I would only like to see the data from the Code and Product columns in my filter results.
The criteria range can be placed in any open cells on your worksheet and you only need to copy the column labels of the columns you will filter by.
No comments:
Post a Comment