Skip to main content

Apply Conditional Formatting

Excel·v1.11.1
ExcelFormattingWrites files

Add a rule that keeps highlighting cells as the data changes, rather than colouring the ones that match today

Inputs

NameTypeRequiredDefaultDescription
Excel Instance
excelInstance
variableRequired
Sheet Name
sheetName
stringOptionalLeave empty for the first sheet
Range
range
stringOptionalThe cells the rule watches, such as B2:B500
Highlight
ruleType
enumOptionalcellIs
cellIscontainsTextcontainsErrorscontainsBlankstop10aboveAveragecolorScaledataBar
Where the value is
operator
enumOptionalgreaterThan
greaterThangreaterThanOrEquallessThanlessThanOrEqualequalnotEqualbetweennotBetween
Shown when ruleType = cellIs
Value
value1
expressionOptional
Shown when ruleType = cellIs
And
value2
expressionOptional
Shown when ruleType = cellIs
Text
text
expressionOptional
Shown when ruleType = containsText
How Many
rank
numberOptional10
Shown when ruleType = top10
Bottom Instead of Top
bottom
booleanOptionalfalse
Shown when ruleType = top10
Treat as a Percentage
percent
booleanOptionalfalse
Shown when ruleType = top10
Above Average
aboveAverage
booleanOptionaltrue
Shown when ruleType = aboveAverage
Fill Colour
fillColor
stringOptionalDefaults to Excel's pale red
Shown when ruleType = cellIs / containsText / containsErrors / containsBlanks / top10 / aboveAverage
Font Colour
fontColor
stringOptional
Shown when ruleType = cellIs / containsText / containsErrors / containsBlanks / top10 / aboveAverage
Low Colour
minColor
stringOptional
Shown when ruleType = colorScale
High Colour
maxColor
stringOptional
Shown when ruleType = colorScale
Bar Colour
barColor
stringOptional
Shown when ruleType = dataBar

Compatibility

WindowsLinuxAttendedUnattended

Related activities