Forum Discussion
jimmybii
Sep 05, 2022Copper Contributor
Conditional formatting using date passed and value in another column
Hi please could anyone help with this - I'm trying to use an 'AND' formula but seem to be messing it up I have a sheet tracking projects, showing the date open - the date is in column B, and colu...
jimmybii
Sep 06, 2022Copper Contributor
Wow - thanks Hans and apologies for my earlier reply: I don't understand how it does it, but it works! A very elegant formula... how is that interpreting levels in column i that are less than 7 and applying the 60 day rule? Brilliant anyway, thank you both for these solutions
HansVogelaar
Sep 06, 2022MVP
Since we select 'greater than' from the second drop down, the rule will highlight cells whose value is greater than the result of the formula in the box next to the second drop down.
The formula =IF(I2<7, 60, 90) returns 60 if I2<7, i.e. if I2 is 1, 2, 3, 4, 5, or 6. So in those cases, the cell will be highlighted if its value is greater than 60.
But the formula returns 90 if I2 is not <7, i.e. if I2 is 7, 8, or 9. In those cases, the cell will be highlighted if its value is greater than 90.
- jimmybiiSep 06, 2022Copper ContributorA deceptively simple formula - fantastic, thanks Hans!