There might be a better way, but try three conditional format rules on C1 in this order:
"Custom formula is"; Value: =IF(A1="Done",TRUE,FALSE)
: set background to White
"Date is after"; "exact date..."; Value: =NOW()+3
: set background to Green
"Cell is not empty": set background to Red. This is the default if the cell is not "Done" and the date is not after three days from now.
You could also keep rule 1, and then have rule 2 being a Colour Scale. You might need to put an extra cell to convert NOW()
into a day count, though: =NOW()-3
for example.
Partial short answer
The formula in I4 has some syntax errors
- Use of the wrong quotation character
- Use of equal sign after commas
Also, the formulas in I3 and I4 have some programming errors:
- Wrong references
- "Unnecessary complexity"
Explanation
Syntax errors
Quotation marks
Modern applications use a large number of characters some of them are visually very similar like "
(U+0022 QUOTATION MARK), ”
(U+201D RIGHT DOUBLE QUOTATION MARK) and ʺ
(U+02BA MODIFIER LETTER DOUBLE PRIME) but for technical purposes, like enclosing strings in spreadsheet formulas, "
(U+0022 QUOTATION MARK) should be used. It's worth to say that some text processors like Microsoft Word could automatically replace "
by ”
so when using and external application as a helper to write complex formulas the related feature should be turned off.
Equal sign
The equal sign could be used as an operator in spreadsheet formulas at the beginning of a formula or as a comparison operator, but not after the function arguments separator (comma or semicolon, according to the spreadsheet locale settings)
Programming errors
Yes, writing a spreadsheet formula makes people to be programmers but usually they are called analysts or just spreadsheet users.
Wrong references
The formula in I4 include references to columns that don't exists (M4,K4,S4,L4)
Unnecessary complexity
The formulas in I3 and I4 use COUNTIF to do a comparisons and the add operator to check if all the required conditions are met. The same could be done in a simpler way by using comparison operators and the boolean functions. While complex ways to do things could work, when something fails, one thing to try is to reduce the complexity.
The following formula is equivalent to the I3 formula but "simpler" (from a "programming" point of view):
=IF(AND(D3<"9:31",E3>65,F3>65,G3>11,H3<"10:01"),"P","F")
Best Answer
if you have a cell (A1) that has conditional formatting set in a way that it will turn red or green and then you have another cell (B1) where you want to display
pass
orfail
based on red/green cell... use that conditional formatting from a first cell (A1) directly as a criterion for your second cell (B1) in a way where you will useIF
formula like:=if(conditional formatting of cell A1 = green, display "pass", otherwise display "fail")