FormatConditionType
Constants which determine the criteria for a format condition.
Enumeration Members
Section titled "Enumeration Members"Average
Section titled "Average"Cells with values which are greater than or less than the average value for the associated region are formatted.
Average = 11 Blanks
Section titled "Blanks"Cells with no value are formatted. Note that foreground-related properties such as font colors are not applicable.
Blanks = 9 CellValue
Section titled "CellValue"The format is based on the cell's value, which is evaluated against one or more conditions to determine whether the value meets a particular criteria.
CellValue = 0 ColorScale
Section titled "ColorScale"Represents a conditional formatting rule which applies gradations to cell colors to indicate relative differences in the values of cells which belong to the associated range.
ColorScale = 2 DataBar
Section titled "DataBar"Represents a conditional formatting rule which renders a color bar inside the cell to indicate relative differences in the values of cells which belong to the associated range.
DataBar = 3 DuplicateValues
Section titled "DuplicateValues"Cells with values which are duplicated (non-unique) across the associated range are formatted.
DuplicateValues = 7 Errors
Section titled "Errors"The format is applied to cells which contain an error.
Errors = 13 Expression
Section titled "Expression"The format is determined by evaluating a formula.
Expression = 1 IconSets
Section titled "IconSets"Represents a conditional formatting rule which displays an icon inside the cell which indicates the cell's value as relative to the highest and lowest value in the associated range.
IconSets = 5 NoBlanks
Section titled "NoBlanks"Cells with a non-empty value are formatted.
NoBlanks = 12 NoErrors
Section titled "NoErrors"The format is applied to cells which do not contain an error.
NoErrors = 14 Cells with the top/bottom n values are formatted, where n represents a numeric, percentage, or percentile ranking. For example, this type can be used to to enable a 'top ten' condition.
Rank = 4 TextString
Section titled "TextString"The format is determined by whether the cell's value matches a literal string value.
TextString = 8 TimePeriod
Section titled "TimePeriod"The format is determined by whether a cell's date value falls within a given period of time.
TimePeriod = 10 UniqueValues
Section titled "UniqueValues"Cells with values which are unique across the associated range are formatted.
UniqueValues = 6