Contents

# Advanced Filter

Defines an advanced filter.

To access this command...

#### From the menu bar:

Choose Data - More Filters - Advanced Filter... .

#### From the tabbed interface:

Choose Data - Advanced Filter.

On the Data menu of the Data tab, choose Advanced Filter.

#### From toolbars:

Advanced Filter

## Read filter criteria from

Select the named range, or enter the cell range that contains the filter criteria that you want to use.

A reference to an empty cell is interpreted as the numeric value 0.

A matching expression can be:

- A number or logical value. A matching cell content equals the number or logical value.

- A value beginning with a comparator (<, <=, =, >, >=, <>).

  For =, if the value is empty it matches empty cells.

  For <>, if the value is empty it matches non-empty cells.

  For <>, if the value is not empty it matches any cell content except the value, including empty cells.

  Note: "=0" does not match empty cells.

  For = and <>, if the value is not empty and can not be interpreted as a number type or one of its subtypes and the property Search criteria = and <> must apply to whole cells is checked, comparison is against the entire cell contents, if unchecked, comparison is against any subpart of the field that matches the criteria. For = and <>, if the value is not empty and can not be interpreted as a Number type or one of its subtypes applies.

- Other Text value. If the property Search criteria = and <> must apply to whole cells is true, the comparison is against the entire cell contents, if false, comparison is against any subpart of the field that matches the criteria. The expression can contain text, numbers, regular expressions or wildcards (if enabled in calculation options).

### Shrink / Expand

Click the Shrink icon to reduce the dialogue box to the size of the input field. It is then easier to mark the required reference in the sheet. The icons then automatically convert to the Expand icon. Click it to restore the dialogue box to its original size.

The dialogue box is automatically minimised when you click within a sheet with the mouse. As soon as you release the mouse button, the dialogue box is restored and the reference range defined with the mouse is highlighted in the document by a blue frame.

Shrink

Expand

## Options

Shows additional filter options.

#### Case-sensitive

Distinguishes between upper-case and lower-case letters when filtering the data.

#### Range contains column labels

Includes the column labels in the first row of a cell range.

#### Copy results to

Mark the check box, and then select the cell range in which you want to display the filter results. You can also select a named range from the list.

#### Regular expression

Allows you to use regular expressions in the filter definition. For a list of the regular expressions that LibreOffice supports, click here.

If the Regular Expressions check box is marked, you can use regular expressions in the Value field if the Condition list box is set to '=' EQUAL or '<>' UNEQUAL. This also applies to the respective cells that you reference for an advanced filter.

#### No duplication

Excludes duplicate rows from the list of filtered data.

#### Keep filter criteria

Mark the Copy results to check box, and then specify the destination range in which you want to display the filtered data. If this check box is marked, the destination range remains linked to the source range. You must have defined the source range under Data - Define range as a database range. Following this, you can reapply the defined filter at any time as follows: click within the source range, then choose Data - Refresh Range.

Related Topics

Applying Filters

Applying AutoFilter

Applying Advanced Filters