Formatting cells/rows are based on single column values by default. Use the FormatConditionBase.Expression property to specify a complex custom expression that returns a value based on several parameters (for example, several columns in a row).
Select the Format all cells based on their values rule in the invoked New Formatting Rule dialog.
Select the Data Bar format style.
Specify the Type and Value fields. These options determine the conditional values on which formatting of cells/rows is based.
To format cells/rows based on single column values, choose the Filed Name value in the Type field, and choose the required column field name in the Value field.
To specify a complex custom expression that returns a value based on several parameters (for example, several columns in a row), choose the Expression value in the Type field, and determine the required expression in the Value field by using the Custom Condition Editor.
Specify the Min Value and Max Value fields to determine the range of values used in formatting. These fields are optional. The range is calculated automatically based on cell values' maximum and minimum values by default.
Specify the Positive Bar Appearance and Negative Bar Appearance fields to define the visual appearance of the applied rule.