Aug 24 2017
08:57 AM
- last edited on
Jul 25 2018
09:58 AM
by
TechCommunityAP
Aug 24 2017
08:57 AM
- last edited on
Jul 25 2018
09:58 AM
by
TechCommunityAP
Hi,
How do I make excel change the colour of a cell depending on a different cells date?
Turn A2 red if - E2 cell is smaller than todays date
Turn A2 yellow with red outline if - E2 cell is equal to todays date
Turn A2 clear if - E2 cell is bigger than the current date
Apr 20 2023 12:10 AM
Thank you. Here is a screenshot of the rules for column G:
There are three problems here:
To correct this, change the formulas to
=$E1="Curio"
and
=$E1="Orsino"
See the attached workbook.
Apr 20 2023 05:06 AM
Apr 20 2023 08:08 AM
How do I apply this to all cells? I can only get it to change the cell colours in the first row @Hans Vogelaar
Apr 20 2023 08:20 AM
Select all the cells that you want to format conditionally before you create the rule.
Apr 20 2023 08:52 AM
Apr 20 2023 10:16 AM
This rule will be applied to A2:B3, and the formula refers to C45. Is that really what you intended?
Apr 20 2023 10:20 AM
Apr 20 2023 10:20 AM
Rule formula shall be applied to to top left cell of the range to which you apply the rule. CF iterates the range applying the formula to each cell of the range. Formula applied to each next cell depends on do you use relative (like A1) or absolute (like $A$1) reference, or their combination.
Apr 20 2023 12:53 PM
Select A3:B64 and make sure that A3 or B3 is the active cell in the selection.
Select Conditional Formatting > Manage Rules...
Delete any rules that are not working correctly.
Then create a new rule of type 'Use a formula to determine which cells to format' with formula
=$C3="Active"
3 is the row number of the active cell; there is no $ before the row number 3 because we want Excel to change it dynamically for rows 4 to 64.
Sep 26 2023 07:47 AM - edited Sep 26 2023 07:57 AM
Can you make the formula relative ?
I'm looking to indicates if the values in a table are rising , or dropping by color as the number are sometimes very close.
If the Value is Larger or Smaller than the value to the Right...
A B C D E
123 125 122 130 145
I'd like the cell to Turn Red if values are rising - Green if dropping relative to the previous day. ( Cell to the Right )
Of course there are multiple Rows :)
Sep 26 2023 08:12 AM
Let's say your data are in A2:E100 (or further down and/or to the right).
Select B2:E100 (i.e.the entire range except the cells in column A).
B2 (the top left cell in the selection) should be the active cell.
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' from the second drop down.
In the box next to it, enter the formula
=A2
Click Format...
Activate the Fill tab.
Select red as fill color.
Click OK, then click OK again.
Repeat these steps, but with 'less than' and green as fill color.
Sep 27 2023 06:59 AM
Sep 27 2023 07:39 AM
Yes, that's how I interpreted your question. The conditional formatting rule that I proposed should do that.