[Table of Contents] [docx version]

SpreadsheetML Reference Material - Table of Contents

ST_CfType (Conditional Format Type)

Conditional format rule type.

This simple type's contents are a restriction of the XML Schema string datatype.

The following are possible enumeration values for this type:

Enumeration Value

Description

aboveAverage (Above or Below Average)

This conditional formatting rule highlights cells that are above or below the average for all values in the range.

beginsWith (Begins With)

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.

cellIs (Cell Is)

This conditional formatting rule compares a cell value to a formula calculated result, using an operator.

colorScale (Color Scale)

This conditional formatting rule creates a gradated color scale on the cells.

containsBlanks (Contains Blanks)

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.

containsErrors (Contains Errors)

This conditional formatting rule highlights cells with formula errors. Equivalent to using ISERROR() sheet function to determine if there is a formula error.

containsText (Contains Text)

This conditional formatting rule highlights cells containing given text. Equivalent to using the SEARCH() sheet function to determine whether the cell contains the text.

dataBar (Data Bar)

This conditional formatting rule displays a gradated data bar in the range of cells.

duplicateValues (Duplicate Values)

This conditional formatting rule highlights duplicated values.

endsWith (Ends With)

This conditional formatting rule highlights cells ending with given text. Equivalent to using the RIGHT() sheet function and comparing values.

expression (Expression)

This conditional formatting rule contains a formula to evaluate. When the formula result is true, the cell is highlighted.

iconSet (Icon Set)

This conditional formatting rule applies icons to cells according to their values.

notContainsBlanks (Contains No Blanks)

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.

notContainsErrors (Contains No Errors)

This conditional formatting rule highlights cells without formula errors. Equivalent to using ISERROR() sheet function to determine if there is a formula error.

notContainsText (Does Not Contain Text)

This conditional formatting rule highlights cells that do not contain given text. Equivalent to using the SEARCH() sheet function.

timePeriod (Time Period)

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.

top10 (Top 10)

This conditional formatting rule highlights cells whose values fall in the top N or bottom N bracket, as specified.

uniqueValues (Unique Values)

This conditional formatting rule highlights unique values in the range.

 

Referenced By

cfRule@type3.3.1.9)

The following XML Schema fragment defines the contents of this simple type:

<simpleType name="ST_CfType">

   <restriction base="xsd:string">

   <enumeration value="expression"/>

   <enumeration value="cellIs"/>

   <enumeration value="colorScale"/>

   <enumeration value="dataBar"/>

   <enumeration value="iconSet"/>

   <enumeration value="top10"/>

   <enumeration value="uniqueValues"/>

   <enumeration value="duplicateValues"/>

   <enumeration value="containsText"/>

   <enumeration value="notContainsText"/>

   <enumeration value="beginsWith"/>

   <enumeration value="endsWith"/>

   <enumeration value="containsBlanks"/>

   <enumeration value="notContainsBlanks"/>

   <enumeration value="containsErrors"/>

   <enumeration value="notContainsErrors"/>

   <enumeration value="timePeriod"/>

   <enumeration value="aboveAverage"/>

   </restriction>

</simpleType>