EXCEL Conditional format function

The EXCEL Conditional format function applies conditional formatting to a range.

Help CentreBuilding Processes

This article describes the RPA Excel functionality to apply conditional formatting to a range.

For a full list of available functions, please read EXCEL functions.


Description

The EXCEL Conditional format function applies conditional formatting to a range. Highlights cells based on a cell value condition with a background colour. Clears any existing conditional formats on the range before applying.


Setting it up

To use the EXCEL Conditional format function, follow these instructions:

{{popups:rpas/add:action=excel-conditional-format}}

Once on a process map:

  1. Navigate to the process where you would like to add the EXCEL Conditional format function
  2. Click on the green button's drop-down (right side of the green button labelled "Process")
  3. On the menu that appears, click on the "+ Activity" item
  4. From here you can select the EXCEL Conditional format option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
File pathYesTextFull path to the Excel file.
SheetYesTextName of the sheet.
RangeYesTextRange to format (e.g. A1:A100).
OperatorYesSelectOperator: >, <, >=, <=, =, !=, between.
ValueYesTextThreshold value. For 'between', use two values separated by a comma (e.g. 10,20).
Background colourNoTextFF0000Hex background colour (e.g. FF0000 for red).

Output variables

This action does not produce any output variables.


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

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.