Forum Discussion

Harwizzywood's avatar
Harwizzywood
Copper Contributor
Jan 30, 2023
Solved

Rule that colours highest value and lowest value

Is there any way I can get excel to detect which cells in each row are higher and lower values and colour them automatically?   im trying to do a spreadsheet that makes it easier for the company I ...
  • HansVogelaar's avatar
    Jan 30, 2023

    Harwizzywood 

    Let's say you have prices in C2:K100.

    Select this range. I will assume that C2 is the active cell in the selection.

    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

     

    =C2=MIN($C2:$K2)

     

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

     

    Repeat these steps, but with the formula =C2=MAX($C2:$K2) and red as color.

Resources