excel formula compare column A with B highlight re the bigger figure

Ulrike Froitzheim 0 Reputation points
2026-09-21T07:47:28.2433333+00:00

excel formula compare column A with B highlight re the bigger figure

Microsoft 365 and Office | Excel | Other | Other
0 comments No comments

2 answers

Sort by: Oldest
  1. AI answer

    2026-09-21T07:47:40.5166667+00:00

    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:

    1. Select the cells to format.
    2. Go to Home > Conditional Formatting > Manage Rules.
    3. Select New Rule.
    4. Choose to use a formula to determine which cells to format.
    5. Enter a formula that returns TRUE or FALSE.

    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.


    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

  2. Marcin Policht 109.6K Reputation points MVP Volunteer Moderator
    2026-09-21T11:05:22.8+00:00

    If you want to compare columns A and B and highlight the larger number in each row, use Conditional Formatting.

    For column A, use this formula:

    =A1>B1

    For column B, use this formula:

    =B1>A1

    Apply each rule to the appropriate column range, for example A1:A100 and B1:B100. Set the desired highlight format for each rule. If A and B are equal, neither cell will be highlighted.

    If your data starts on a different row, such as row 2, use:

    =A2>B2

    =B2>A2


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.