高级筛选

定义高级筛选。

要访问此命令...

选择「数据 - 更多筛选 - 高级筛选...」。


筛选条件来自(F)

选择命名的区域,或者输入含有要使用的筛选条件的单元格区域。

Shrink / Expand

Click the Shrink icon to reduce the dialog 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 dialog to its original size.

当您在工作表中点击鼠标按钮并拖动一个区域时,对话框自动缩小。一旦您放开鼠标按钮,对话框便重新用完整大小显示,而用鼠标定义的区域引用在文档中用一个蓝色的边框被突出强调出来。

Icon shrink

缩小

Icon Expand

Expand

Options

显示其他过滤选项。

区分大小写

过滤数据时区分字母的大小写。

区域含有列标签

单元格范围的第一行中包含列标签。

复制结果到

选中复选框,然后再选择用于显示过滤结果的单元格范围。也可以从列表中选择命名的范围。

正则表达式

允许您在过滤器定义中使用通配符。如果需要 LibreOffice 所支持的正则表达式列表,请点击此处

如果选中了「正则表达式」复选框,则可以在「值」字段中使用正则表达式 (如果将「条件」列表框设置为 '=' EQUAL 或者 '<>' UNEQUAL)。这也适用于分别为高级过滤器引用的单元格。

不生成复件

排除过滤数据列表中的重复行。

保留筛选条件

选择「将结果复制到复选框,然后指定用于显示过滤数据的目标区域。如果选中了此复选框,目标区域将保持与源区域的链接。必须已经在数据 - 定义区域」下将源区域定义为数据库区域。这样,就可以按照以下方法随时重复应用已定义的过滤器: 在源区域中点击,然后选择「数据 - 刷新区域」。

Applying Advanced Filters

  1. 将要筛选的工作表区域列标题复制到工作表中的空白区域,然后在列标题下方的行中输入筛选条件。行中水平排列的数据总以逻辑符号「和」相连接,列中垂直排列的数据总以逻辑符号「或」相连接。

  2. Once you have created a filter matrix, select the sheet ranges to be filtered. Open the Advanced Filter dialog by choosing Data - More Filters - Advanced Filter, and define the filter conditions.

  3. Then click OK, and you will see that only the rows from the original sheet whose contents have met the search criteria are still visible. All other rows are temporarily hidden and can be made to reappear with the Format - Rows - Show command.

Example

加载一个含有大量数据记录的电子表格。我们使用的是一个「周转」文档,不过您使用其他任何文档也一样简单。该文档具有以下版式:

A

B

C

D

E

1

标准

商务

豪华型

套件

2

一月

125600

200500

240000

170000

3

二月

160000

180300

362000

220000

4

三月

170000

等等...


将第 1 行带行标题 (字段名称) 复制到第 20 行。在第 21、22 等各行内输入以 OR 链接的筛选条件。

A

B

C

D

E

20

标准

商务

豪华型

套件

21

一月

22

<160000


Specify that only rows which either have the value January in the Month cells OR a value of under 160000 in the Standard cells will be displayed.

Choose Data - More Filters - Advanced Filter, and then select the range A20:E22. After you click OK, only the filtered rows will be displayed. The other rows will be hidden from view.

请支持我们!