条件格式
Choose Conditional Formatting to define format styles depending on certain conditions. If a style was already assigned to a cell, it remains unchanged. The style entered here is then evaluated. There are several types of conditional formatting that can be used.
您可以输入多个条件,这些条件查询单元格的值或者公式。条件将被逐个进行评估。若第一个条件被满足,设定的样式将会被使用。否则,条件2将会被评估,它设定的样式将会被使用。若该样式不满足,则下一个条件将会被评估,以此反复。
要应用条件格式,必须启用自动计算。选择“工具 - 单元格内容 - 自动计算”(启用自动计算后,将会看到该命令旁边的复选标记)。
条件
您可以设置多个需要的条件。
指定条件格式是否依赖于下拉列表中列出的项目之一。
-
若您选择 所有单元格, 会看到“色阶”,“数据条”或者“图标集”。以下的解释取决于条件格式将被应用哪种视觉形式。
-
若您选择 单元格值为:
-
选择一个将要被应用到选定单元格的条件,并输入值。
-
在 应用样式 那里,从列表中选择需要的样式,或者通过选择 新建样式 来新建一个样式。
-
Click the Add button to add another condition, click the Remove button to remove a condition.
-
In the Range field, define the range of cells concerned by the conditional formatting. Click on the Shrink button to minimize the dialog box. Click again on the button to come back to the dialog box once the range is selected.
-
-
如果您选择 公式为 作为单元格引用, 请输入一个单元格公式。 如果单元格引用是零以外的未值,则条件满足。
-
如果您选择 日期为, 请见下列对“日期”的描述。
色阶
该对话框于您在 条件 中选择 所有单元格 时的相同。对一个区域应用颜色,显示双色或者三色的渐变效果,颜色根据每个单元格的值进行变化。一个典型的例子就是温度指示器,较低的温度为蓝色,较高的温度为红色,中间部分通过渐变效果来显示。
您必须选择计算方法对应的两个“极端”颜色。对需要应用的颜色的计算可采用:最小 - 最大 - 百分位 - 值 - 百分比 - 公式。
“最大”和“最小”足以在区域中找到。其它选项需要指定一个值(百分位,值,百分比)或者单元格引用,或者公式(公式)。
For a detailed explanation and examples, please visit How to apply a Color Scale Conditional Formatting page in TDF Wiki.
图标集
你可能想要得到某个值相对于阈值的位置。图标集可以帮您标出临界值,并选择相应的图标。可用的图标集有:
-
3, 4 或者5个箭头
-
3, 4 或者5个灰色箭头
-
3 个旗帜
-
3个交通信号灯1和2 (两套不同的标志)
-
3个符号(方框,三角,圆圈)
-
4个从红到黑的圆圈
-
4个或5个手机信号标志
-
5个四等分
用于显示每个图标的条件可以通过“值”、“百分比”、"百分位"、“公式”来指定。
For a detailed explanation and examples, please visit How to use Icon Set Conditional Formatting page in TDF Wiki.
日期
该选项将会根据您在下拉框中选择的日期(今天 - 昨天 - 明天 - 过去7天 - 本周 - 上周)来应用所设定的样式。
-
在 应用样式 那里, 选择所需要的样式,或者选择 新建样式 新建一个。
-
单击 添加 按钮以添加另外一个条件。单击 移除 按钮移除一个条件。
-
在 区域 字段, 设定该条件格式对应的单元格区域。单击 收缩 按钮以最小化该对话框。选定区域后,再单击此按钮以返回该对话框。
管理条件格式
This dialog allows you to see all the conditional formatting defined in the spreadsheet.
The Manage Conditional Formatting dialog box opens. Here you can add, edit or remove one or several conditional formattings.
The Conditional Formats list displays the active conditional formatting rules set in the current spreadsheet. Only the first rule for each cell range is listed, even if there are multiple rules defined for a given range.
如果您已经为某个单元格区域应用了条件格式,而试图给该区域的一部分再应用新的条件格式,将会弹出警告信息,询问您是要编辑现有的条件格式(针对整个区域),还是新建一个重叠的条件格式(针对选定的区域)。