gpt-4o-2024-05-13· OpenAI
WildChat-4.8M (AI2)
Make a Excel formula when It is - it will be red
- User
Make a Excel formula when It is - it will be red
- Assistant
In Excel, you can use Conditional Formatting to change the color of a cell based on its value. If you want to make a cell turn red when it contains a negative value, you can follow these steps:
- Select the range of cells you want to apply the formatting to.
- Go to the Home tab on the Ribbon.
- Click on Conditional Formatting in the Styles group.
- Choose New Rule from the dropdown menu.
- Select Format only cells that contain.
- In the "Format only cells with" section, set the condition:
- In the first dropdown, select Cell Value.
- In the second dropdown, select less than.
- In the third field, enter 0.
- Click on the Format button to specify the format you want to apply.
- Go to the Fill tab and choose a red color.
- Click OK to close the Format Cells dialog.
- Click OK again to apply the rule.
Now, any cell within the selected range that contains a negative value will be highlighted in red.