Forum Discussion
How do I make excel change the colour of a cell depending on a different cells date?
- Nov 21, 2022
Let's say you want to highlight a row if column F contains "Closed".
Use the formula
=$F2="Closed"
If you want something different, please provide more detailed information.
HansVogelaar if I want to change a cell color based on a collumn in a different sheet containing the number 221 how do I do that?
So for instance I need my cell to turn green if any cell in column C on the second sheet titled testdone contains the number 221
Create a rule of type 'Use a formula to determine which cells to format' with the formula
=ISNUMBER(MATCH(221,testdone!$C:$C,0))
- SattamSaeidiJan 24, 2023Copper Contributor
Your answer help me
If cell A8 contain a "text" and D8 contain a text that can be "closed" or "Open"
And i want to change the color of A8 based on D8 text, that is clear to me by using your used fourmla
My inquirry, but if i want to repeat above fourmla for each raw such as
A9 based on D9
A10 based on D10
A11 based on D11
and roll gose on
- HansVogelaarJan 24, 2023MVP
Select A8:A100 (or as far down as you want).
A8 should be 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=D8="Closed"
Click Format...
Activate the Fill tab.
Select a highlight color.
Click OK, then click OK again.Repeat these steps, but with the formula
=D8="Open"
and another color.
- SattamSaeidiJan 24, 2023Copper Contributor