Forum Discussion

Larry_Walsh's avatar
Larry_Walsh
Copper Contributor
Oct 11, 2023
Solved

I need to change the color of all cells in a row based on the data in a single cell

Hi all, I'm making a tracking sheet for tasks in progress. I have a column for status, where I have conditional formatting on to change the colors based on certain data, like 'ON HOLD' is red, 'DONE...
  • HansVogelaar's avatar
    Oct 11, 2023

    Larry_Walsh 

    Let's say your data are in rows 2 and below, and the status is in column K.

    Select those rows. The active cell in the selection should be in row 2.

     

    On the Home tab of the ribbon, click Conditional Formatting > New Rule...
    Select 'Use a formula to determine which cells to format'.
    Enter the formula

     

    =$K2="ON HOLD"

     

    Note that there is a $ before the column letter K but not before the row number 2. This is essential.

    Click Format...
    Activate the Fill tab.
    Select red as highlight color.
    Click OK, then click OK again.

     

    Repeat these steps, but with the formula

     

    =$K2="DONE"

     

    and green as highlight color.

     

    Etc. - one rule for each status.

Resources