Forum Discussion

AJS032's avatar
AJS032
Copper Contributor
Jan 09, 2022

Change cell colour when a set value is reached

I want to change a cell colour when a certain value is approaching (say$400) from Green to Red, how do I go about it?

    • AJS032's avatar
      AJS032
      Copper Contributor
      thanks Hans, It would be the result of a formula and not normally changed
      • AJS032

        You might use conditional formatting:

        Select the cell (or cells) that you want to format.

        Set the fill color to green (this will be the default).

        On the Home tab of the ribbon, select Conditional Formatting > New Rule...

        Select 'Format only cells that contain'.

        Leave the first drop-down set to 'Cell Value'.

        Select 'greater than or equal to' from the second drop-down.

        Enter 400 in the box next to it.

        Select Format...

        Activate the Fill tab.

        Select red.

        Click OK, then click OK again.

    • shah2468's avatar
      shah2468
      Copper Contributor

      HansVogelaar Hello, How to change the value of the cell if the value is being inserted by the user in the cell?

      • shah2468 

        The conditional formatting should still work if the user enters the value.

        You'd have a problem if they populate the cell by copying and pasting a cell from elsewhere.

Resources