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
variableRequiredNot set
Sheet Name
sheetName
stringOptionalNot setLeave empty for the first sheet
Range
range
stringOptionalNot setThe 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
expressionOptionalNot set
Shown when ruleType = cellIs
And
value2
expressionOptionalNot set
Shown when ruleType = cellIs
Text
text
expressionOptionalNot set
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
stringOptionalNot setDefaults to Excel's pale red
Shown when ruleType = cellIs / containsText / containsErrors / containsBlanks / top10 / aboveAverage
Font Colour
fontColor
stringOptionalNot set
Shown when ruleType = cellIs / containsText / containsErrors / containsBlanks / top10 / aboveAverage
Low Colour
minColor
stringOptionalNot set
Shown when ruleType = colorScale
High Colour
maxColor
stringOptionalNot set
Shown when ruleType = colorScale
Bar Colour
barColor
stringOptionalNot set
Shown when ruleType = dataBar

Compatibility

WindowsLinuxAttendedUnattended

Related activities