David: Well, I am sure their intention was not humorous. But, you have a
good point. The "IF (Date..." expression throws me a bit. Which date do
they mean? Today's date? The date in some other cell? Then, it says "if
any of these things are true, then...[something?]". But, somehow, this is
generating a date in the subject cell.
In other words, this expression:
=IF(DATE(2010,4,16)<>"",IF(DATE(2010,4,16)>=DATE(7777,12,31),"One Time
Only",(DATE(2010,4,16))))
shows "16-Apr-09". (So, I ask, why not just enter the date?).
The really vexing thing about this is the use of the stoplight symbol in
cell A1. It says that for all of the row, if "Number" >30, the circle is
green, if between 0 and 29 it is yellow and if it is less than zero, it is
red. This does not appear to correspond to the behavior in any of the other
date cells in that row. I believe it is trying to say that if any of the
training dates in the row are within 30 days of today (coming due) or less
than today (due), then display yellow or red as a warning. However, what the
"Number" means in this expression as it relates to dates is a mystery.
DOUG
:
It appears to me that you have been given gibberish.
The formula
=IF(DATE(2010,4,16)<>"",IF(DATE(2010,4,16)>=DATE(7777,12,31),"One Time
Only",(DATE(2010,4,16))))
is largely meaningless.
The first condition DATE(2010,4,16)<>"" is always TRUE
The second condition DATE(2010,4,16)>=DATE(7777,12,31) is always FALSE
So the formula could more sensible have been written not as
=IF(DATE(2010,4,16)<>"",IF(DATE(2010,4,16)>=DATE(7777,12,31),"One Time
Only",(DATE(2010,4,16))))
but as
=DATE(2010,4,16)
If this is typical of the material you have been given to work with, I
suggest that you throw it all away and start again from square one.
Perhaps the sheet was written as a joke?
--
David Biddulph
David: I did not write it, but have been asked to help repair it. It
appears to me to say that if any of the dates in the various columns are
over
60 days old, then the stoplight indicator in the A column will turn red.
The
nuts and bolts of the expression are a little over my head, however. I
did
point out to the user that all but one of the date cells were based upon
formulas, i.e., someone had entered a plain date in a cell that should
have
displayed a formula. That cell should display the following formula:
=IF(DATE(2010,4,16)<>"",IF(DATE(2010,4,16)>=DATE(7777,12,31),"One Time
Only",(DATE(2010,4,16))))
and I do not know what this means either.
DOUG
:
For a conditional formatting condition I would expect to see a formula
that
returns TRUE or FALSE, so I'm not sure why you have a formula which is
returning numbers like -60.
-60 (or any number other than zero) will be treated as TRUE, but it isn't
clear why you are using an IF statement of that form.
Perhaps you could explain what you are trying to do?
The alternative to -60 is the expression
IF(LEFT(G150,4)="FFZZ",MIN(H150:J150,M150:Y150)-TODAY(),MIN(H150:J150,M150:Y150)-TODAY())
and here your value_if_true and value_if_false are identical
[MIN(H150:J150,M150:Y150)-TODAY()], so again perhaps you could explain to
us
what you are trying to achieve with that part of the formula?
--
David Biddulph
Please evaluate this:
=IF(AND(COUNT(H150:J150,M150:Y150)=16,COUNTBLANK(K150:L150)<=1,COUNTBLANK(AA150)<=1,OR(LEFT(G150,4)="FFZZ",AND(NOT(LEFT(G150,4)="FFZZ"),COUNT(Z150)=1))),IF(LEFT(G150,4)="FFZZ",MIN(H150:J150,M150:Y150)-TODAY(),MIN(H150:J150,M150:Y150)-TODAY()),-60)
This is supposed to make the stoplight symbol in column A match the
colors
in subsequent cells in the same row, but it does not work.
DOUG ECKERT