Forum Discussion

JWB48's avatar
JWB48
Copper Contributor
Sep 27, 2025
Solved

Conditional Formatting (?) Issue

I'm trying to change the colour of the font in a cell based on the value in an adjacent cell but can't get the formula to work. Help please!

Example:

Cell A      Cell B

ABC         xxxxxx

DEF         yyyyyy

GHI         xxxxxx

 

If Cell A = ABC, I want Cell B to be Bold Red font

If Cell A = DEF, I want Cell B to be Bold, Blue font

If Cell A = GHI, I want cell B to be Bold Green fomnt

Thanks in advance.

4 Replies

    • JWB48's avatar
      JWB48
      Copper Contributor

      Perfect - thank you so much

      • Harun24HR's avatar
        Harun24HR
        Bronze Contributor

        Glad to know! You should mark as solution to my answer not your one. That is how this community works and visitors can know that it helps to solve your problem.

  • Take this:

     

    Step 1: Select the Range

    • Select the range in Column B where you want formatting (e.g., B1:B100).

    Step 2: Open Conditional Formatting

    • Go to Home > Conditional Formatting > New Rule
    • Choose “Use a formula to determine which cells to format”

    Step 3: Enter the Formula

    For each rule, use a formula like this:

    Red for ABC

    =$A1="ABC"

    Blue for DEF

    =$A1="DEF"

    Green for GHI

    =$A1="GHI"

    Make sure the $A1 reference is relative to the first row of your selection (e.g., B1).

    Step 4: Set the Format

    • Click Format
    • Go to Font tab
    • Choose Bold and the desired Color
    • Click OK

    Repeat this process for each condition.

Resources