特殊篩選

定義最多可組合八個不同篩選條件的篩選。

若要使用此指令...

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


篩選條件位於

選取已命名的區域,或者輸入包含要使用的篩選條件之儲存格範圍。

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. 將要篩選的試算表範圍之欄號複製到試算表的空白區塊,然後在欄號下方的列中輸入篩選條件。列中水平方向排序的資料將總以邏輯符號 AND 相連結,而欄中垂直方向排序的資料將總以邏輯符號 OR 相連結。

  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。輸入以 OR 連結的篩選條件至列 21、22,以此類推。此範圍可能如下所示:

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.

Please support us!