條件

為所選儲存格指定驗證規則。

若要使用此指令...

Menu Data - Validity - Criteria tab.


例如,可以定義如下條件:「1 到 10 之間的數字」或「不超過 20 個字元的文字」。

允許

為所選儲存格指定有效性選項。

以下條件可用:

條件

效果

所有值

無限制

Whole numbers

只有整數符合條件。

十進位

所有符合條件的數字。

日期

所有符合條件的數字。輸入的數值會在下一次呼叫對話方塊時對應地格式化。

時間

所有符合條件的數字。輸入的數值會在下一次呼叫對話方塊時對應地格式化。

儲存格範圍

只允許儲存格範圍中指定的值。儲存格範圍可明確指定為已命名的資料庫範圍或為已命名的範圍。此範圍可能由一欄或一列儲存格所組成。如果您指定欄與列的範圍,只會使用第一欄。

清單

只允許清單中指定的值或字串。字串與值可以混合。數字評估為其值,所以如果您在清單中輸入數字 1,項目 100% 也為有效。

評註圖示

Only up to 255 characters are saved, when using Excel format.


文字長度

符合條件的輸入長度。

Custom

Only allow values that result in the formula entered in the Formula box to return TRUE, when the formula is calculated with the entered value. The formula can be any expression that evaluates to a boolean value of TRUE or FALSE, or returns a numerical value, where a nonzero value is interpreted as TRUE and 0 is interpreted as FALSE.

Formulas can use relative referencing. For example, if cells A1:A4 were selected, the cursor is in cell A1 and ISODD(A1) is entered into the Formula box, then only odd numbers could be entered into cells A1 through A4.


允許空白儲存格

[工具] - [偵測] - [標記無效的資料] 一起使用時,會定義空白儲存格顯示為無效的資料 (已停用) 或有效的資料 (已啟用)。

顯示選取清單

Shows a list of all valid strings or values to select from. The list can also be opened by selecting the cell and pressing .

向上排序項目

向上排序選取清單並篩選清單中的重複項目。如果未核取,則會採用資料來源的順序。

來源

輸入包含有效值或文字的儲存格範圍。

項目

輸入將是有效值或文字字串的項目。

資料

Select the comparative operator that you want to use. The available operators depend on what you selected in the Allow box. If you select "between" or "not between", the Minimum and Maximum input boxes appear. Otherwise, only the Minimum, the Maximum, or the Value input boxes appear.

Value

輸入您在 [允許] 方塊中選取之資料的資料驗證選項值。

最小值

[允許] 方塊中所選資料有效性選項輸入最小值。

最大值

[允許] 方塊中所選資料有效性選項輸入最大值。

Please support us!