View Single Post
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rick Rothstein \(MVP - VB\) Rick Rothstein \(MVP - VB\) is offline
external usenet poster
 
Posts: 2,202
Default Monter IF statement??? sorry long question

Unless I am missing something about your condition, I don't see where it
comes into play. It seems like you are saying that the only time FTA will
make a Pass is if H2 (Completed) is between E2 and F2 (Start and End dates),
otherwise it make a False. But if H2 is between E2 and F2, that is the first
condition you listed for Pass.. so, if H2 is between E2 and F2, we have a
Pass no matter what is in FTA. The way I set the formula up, I test for the
things that make a Pass, otherwise it gives a Fail. Again, unless I am
misreading your conditions, that means FTA doesn't factor into the formula
at all (as I have constructed it).

Rick


"Steve" wrote in message
...
I need the FTA to make it fail as well as the others unless they complete
durig the target period

"Rick Rothstein (MVP - VB)" wrote:

Okay, assuming I have understood the conditions you posted, give this
formula a try...

=IF(OR(P2<"",E2=""),"",IF(OR(N2<"",AND(H2=E2,H2 <=F2),AND(O2=E2,O2<=F2,H2<"")),"Pass","Fail"))

Note that, as I have constructed it, there is no test for FTA. Unless I
misread your conditions, FTA is immaterial as your other conditions will
force a failure notice with or without the FTA column; and the only time
the
FTA column will force a Pass is when you already have a Pass because the
Completed column met its own Pass conditions.

Rick


"Steve" wrote in message
...
The columns will all have dates in and i need to get it to check if
they
are
between the dates in E & F so the beginning of the formulea is fine
buts
after that is where i started to get stuck

"David Biddulph" wrote:

Try this as a start:
=IF(OR(AND(H2=E2,H2<=F2),N2="Waived"),"Pass",IF(O R(M2="FTA",O2="Deferred"),"Fail",IF(P2="Exit",""," undefined")))
If the content of your columns is different from what I've assumed,
you
can
adjust the formula accordingly.
--
David Biddulph

"Steve" wrote in message
...
I am setting up a spreadsheet to do some stats and am lost on a large
if,and,or type statement

The columns are
E=Start of period
F=end of period
H=Completed
Q=Target achivied
N=Waived
O=Deferred
M=FTA
P=Exit

U=Exit

The other columns dont really matter as they wont affect what i want

The Result in Col Q needs to Be Pass or Fail

The scenario is as follows.

If the interivew is completed within the target window (E-F) we pass
If we waive the interview (N) we pass
IF we FTA the interview (M) we fail unless there is an entry between
E-F
in
completed (H)
If we Defer the interview outside the target window we fail but if
it
is
inside & we complete the interview we pass
If we Exit (P) thne i want no entry at all in Col Q

i think that is all. I got so far then gave up. If i cnt do one
large
statement should i do lots of little ones with outcomes in hidden
columns?

hopefully this makes sense