Const
Readonly
AboveAverage: "aboveAverage"This conditional formatting rule highlights cells that are above or below the average for all values in the range.
Readonly
BeginsWith: "beginsWith"This conditional formatting rule highlights cells in the range that begin with the given text. Equivalent to using the LEFT() sheet function and comparing values.
Readonly
CellIs: "cellIs"This conditional formatting rule compares a cell value to a formula calculated result, using an operator.
Readonly
ColorScale: "colorScale"This conditional formatting rule creates a gradated color scale on the cells.
Readonly
ContainsBlanks: "containsBlanks"This conditional formatting rule highlights cells that are completely blank. Equivalent of using LEN(TRIM()). This means that if the cell contains only characters that TRIM() would remove, then it is considered blank. An empty cell is also considered blank.
Readonly
ContainsErrors: "containsErrors"This conditional formatting rule highlights cells with formula errors. Equivalent to using ISERROR() sheet function to determine if there is a formula error.
Readonly
ContainsText: "containsText"This conditional formatting rule highlights cells containing given text. Equivalent to using the SEARCH() sheet function to determine whether the cell contains the text.
Readonly
DataBar: "dataBar"Conditional formatting based on data bars.
Readonly
DuplicateValues: "duplicateValues"This conditional formatting rule highlights duplicated values.
Readonly
EndsWith: "endsWith"This conditional formatting rule highlights cells ending with given text. Equivalent to using the RIGHT() sheet function and comparing values.
Readonly
Expression: "expression"This conditional formatting rule contains a formula to evaluate. When the formula result is true, the cell is highlighted.
Readonly
IconSet: "iconSet"Conditional formatting using icon sets.
Readonly
NotContainsBlanks: "notContainsBlanks"This conditional formatting rule highlights cells that are not blank. Equivalent of using LEN(TRIM()). This means that if the cell contains only characters that TRIM() would remove, then it is considered blank. An empty cell is also considered blank.
Readonly
NotContainsErrors: "notContainsErrors"This conditional formatting rule highlights cells without formula errors. Equivalent to using ISERROR() sheet function to determine if there is a formula error.
Readonly
NotContainsText: "notContainsText"This conditional formatting rule highlights cells that do not contain given text. Equivalent to using the SEARCH() sheet function.
Readonly
TimePeriod: "timePeriod"This conditional formatting rule highlights cells containing dates in the specified time period. The underlying value of the cell is evaluated, therefore the cell does not need to be formatted as a date to be evaluated. For example, with a cell containing the value 38913 the conditional format shall be applied if the rule requires a value of 7/14/2006.
Readonly
Top10: "top10"This conditional formatting rule highlights cells whose values fall in the top N or bottom N bracket, as specified.
Readonly
UniqueValues: "uniqueValues"This conditional formatting rule highlights unique values in the range.
This enum is used to define different types of conditional formatting rules that can be applied to cells in a spreadsheet. Each type corresponds to a specific style of formatting that adjusts based on data or predefined conditions. Conditional formatting visually highlights cells to make patterns, trends, or exceptions in the data more noticeable.
Represents the various types of built-in conditional formatting rules.