Excel: Conditional format

Apply conditional formatting to a range. Supports cell value rules (highlight cells based on a condition).

Help Centre › Building Processes

Apply conditional formatting to a range. Supports cell value rules (highlight cells based on a condition).

Runs on: macOS and Windows only.

Add it to a process

In the process designer, open the Add step tab. Find Conditional format under Excel › Formatting, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
File pathNoEnter the file path, or use a variable such as {folders::desktop::path}\file.xlsx. Leave blank to use the workbook an earlier step opened.
SheetYesName of the sheet in the Excel file. Supports wildcards: * matches any characters.
CellYesThe cell, e.g. A1, or {variable}.
OperatorYesHow each cell is compared with Value, e.g. > with Value 1000 colours every cell above 1000. For between, put both limits in Value, e.g. 10,20. Choices: Greater than (>), Less than (<), Greater than or equal (>=), Less than or equal (<=), Equal (=), Not equal (!=), Between.
ValueYesThreshold value. For 'between', use two values separated by a comma (e.g. 10,20).
Background colourNoHex colour (e.g. FF0000 for red). Defaults to red. Default: FF0000.

See all Excel steps.

Errors

ErrorDescription
File not openThe Excel file must be open.
Sheet not foundThe specified sheet does not exist.
Invalid rangeThe range is not valid.
Invalid operatorThe operator is not supported.

Tips

  • Existing conditional formats on the range are cleared before the new rule is applied.
  • For the 'between' operator, separate the two values with a comma (e.g. 10,20).
  • Colour is specified as a hex value without the # prefix (e.g. FF0000 for red, 00FF00 for green).

Related functions

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.