A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
To compare values in column A and column B, use a logical comparison formula such as:
=A1>B1
This returns TRUE when the value in column A is greater than the value in column B, and FALSE when it is not.
To highlight the bigger figure with conditional formatting:
- Select the cells to format.
- Go to Home > Conditional Formatting > Manage Rules.
- Select New Rule.
- Choose to use a formula to determine which cells to format.
- Enter a formula that returns
TRUEorFALSE.
Examples:
- To highlight cells in column A when A is bigger than B:
=A1>B1 - To highlight cells in column B when B is bigger than A:
=B1>A1
Then choose the format color and apply the rule.