条件格式

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将会被评估,它设定的样式将会被使用。若该样式不满足,则下一个条件将会被评估,以此反复。

要访问此命令...

Choose Format - Conditional.


警告图标

要应用条件格式,必须启用自动计算。选择“工具 - 单元格内容 - 自动计算”(启用自动计算后,将会看到该命令旁边的复选标记)。


条件

您可以设置多个需要的条件。

指定条件格式是否依赖于下拉列表中列出的项目之一。

色阶

该对话框于您在 条件 中选择 所有单元格 时的相同。对一个区域应用颜色,显示双色或者三色的渐变效果,颜色根据每个单元格的值进行变化。一个典型的例子就是温度指示器,较低的温度为蓝色,较高的温度为红色,中间部分通过渐变效果来显示。

您必须选择计算方法对应的两个“极端”颜色。对需要应用的颜色的计算可采用:最小 - 最大 - 百分位 - 值 - 百分比 - 公式。

“最大”和“最小”足以在区域中找到。其它选项需要指定一个值(百分位,值,百分比)或者单元格引用,或者公式(公式)。

For a detailed explanation and examples, please visit How to apply a Color Scale Conditional Formatting page in TDF Wiki.

图标集

你可能想要得到某个值相对于阈值的位置。图标集可以帮您标出临界值,并选择相应的图标。可用的图标集有:

用于显示每个图标的条件可以通过“值”、“百分比”、"百分位"、“公式”来指定。

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.

如果您已经为某个单元格区域应用了条件格式,而试图给该区域的一部分再应用新的条件格式,将会弹出警告信息,询问您是要编辑现有的条件格式(针对整个区域),还是新建一个重叠的条件格式(针对选定的区域)。