Forum Discussion
Auto adjust cell color, if another set of cells has a specifc text
- Aug 30, 2023
Select B1:L1 (or more rows in columns B to L if you wish).
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=$A1="text1"
Click Format...
Activate the Fill tab.
Select green as highlight color.
Click OK, then click OK again.Repeat these steps with the formula
=$A1="text2"
and red as fill color.
Select B1:L1 (or more rows in columns B to L if you wish).
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
=$A1="text1"
Click Format...
Activate the Fill tab.
Select green as highlight color.
Click OK, then click OK again.
Repeat these steps with the formula
=$A1="text2"
and red as fill color.
Hi HansVogelaar,
Thank you very much for your answer. Unfortunately it did not work. I've tryied several times, but I do not know what I am doing wrong.
If you find out, please, let me know.
Regards,
Erick