Originally posted by: dullard
What if a cell says pass and another in the same column says fail. Then what should it display?
ScottSwingleComputers, can you read? Look here:Originally posted by: ScottSwingleComputers
If ANY cell in the same column = "Fail" I want this particular cell to say "Fail
Learn to read
So, if a column has at least one pass and at least one fail, then one of the two conditions will be violated. Thus my question arises. Which condition takes presidence?Originally posted by: Hankerton
where if ANY cell in a particular column = "Pass", I want this particular cell to say "Pass".
Originally posted by: dullard
ScottSwingleComputers, can you read? Look here:Originally posted by: ScottSwingleComputers
If ANY cell in the same column = "Fail" I want this particular cell to say "Fail
Learn to read
So, if a column has at least one pass and at least one fail, then one of the two conditions will be violated. Thus my question arises. Which condition takes presidence?Originally posted by: Hankerton
where if ANY cell in a particular column = "Pass", I want this particular cell to say "Pass".
Try this example:
A1: "asfsadfd"
A2: "4552345"
A3: "Pass"
A4: "Fail"
A5: "$#@%@#"
(1) If any of A1-A5 says pass, then cell B1 = "pass"
(2) If any of A1-A5 says fail, then cell B1 = "fail"
Now, should B1 say pass for #1? Or should B1 say fail for #2? Or should B1 say "error I cannot satisfy both #1 and #2 at the same time"?
Originally posted by: Hankerton
Originally posted by: dullard
ScottSwingleComputers, can you read? Look here:Originally posted by: ScottSwingleComputers
If ANY cell in the same column = "Fail" I want this particular cell to say "Fail
Learn to read
So, if a column has at least one pass and at least one fail, then one of the two conditions will be violated. Thus my question arises. Which condition takes presidence?Originally posted by: Hankerton
where if ANY cell in a particular column = "Pass", I want this particular cell to say "Pass".
Try this example:
A1: "asfsadfd"
A2: "4552345"
A3: "Pass"
A4: "Fail"
A5: "$#@%@#"
(1) If any of A1-A5 says pass, then cell B1 = "pass"
(2) If any of A1-A5 says fail, then cell B1 = "fail"
Now, should B1 say pass for #1? Or should B1 say fail for #2? Or should B1 say "error I cannot satisfy both #1 and #2 at the same time"?
I'm sorry, I should have clarified. Failure takes presedence over anything else. They would all have to pass for it to say Pass. Only one would have to Fail to say "Fail". But I don't want to include a whole column, just a section of a column (e.g. E7:E25)
Originally posted by: JulesMaximus
=if(A1="pass","pass","fail")
This will work but I'm not 100% sure that's what you want it to do. Any cell that is not equal to pass will produce the result fail.
But the condition "if ANY cell says pass then say PASS" has NOT been met.Originally posted by: ScottSwingleComputers
If it has one pass, and one fail, then the condition "If ANY cell says fail" has been met.
Originally posted by: dullard
But the condition "if ANY cell says pass" has NOT been met.Originally posted by: ScottSwingleComputers
If it has one pass, and one fail, then the condition "If ANY cell says fail" has been met.
Are you really this dense?
You added an extra condition. You did the pass check first THEN the fail check. I was simply asking the order that he wanted because he didn't specify the order. You ASSUMED the order. If it was typed in the opposite order, would you have changed your assumption?Originally posted by: ScottSwingleComputers
But if you read the entire thing logically, you check if any pass. One does, the cell is marked pass. THEN if any are fail, the cell is marked fail.
Are you really this dense?
Originally posted by: dullard
You added an extra condition. You did the pass check first THEN the fail check. I was simply asking the order that he wanted because he didn't specify the order. You ASSUMED the order. If it was typed in the opposite order, would you have changed your assumption?Originally posted by: ScottSwingleComputers
But if you read the entire thing logically, you check if any pass. One does, the cell is marked pass. THEN if any are fail, the cell is marked fail.
Are you really this dense?
If this picture as a cat in it, then type "cat" in a reply to me or if that picture has a dog in it, then type "dog" in that reply to me. ONLY reply with one answer and it must be "dog" or "cat".
Go.
I agree with you in some cases, but not in others.Originally posted by: ScottSwingleComputers
But in a situation with a pass fail requirements, that is the only solution that makes sense.
AND it would make sense that he would type it on the order he wanted it to be.
Originally posted by: dullard
I agree with you in some cases, but not in others.Originally posted by: ScottSwingleComputers
But in a situation with a pass fail requirements, that is the only solution that makes sense.
AND it would make sense that he would type it on the order he wanted it to be.
[*]Supose you had 100 questions on an assignment, you passed 99, and failed one. Should you automatically fail the assignment? Probably not. The pass would probably take presidence. And Pass should override, in fact most teachers/professors would give than an A+ grade.
[*]Suppose you were checking 100 aircraft parts for safety; you passed 99 parts and failed one part. Should the airline fly that plane? Definitely not. The fail should take presidence.
Oh and one last question, Hankerton. If nothing in the column says "pass" and nothing says "fail", what should it say?
Oh I missed this post.Originally posted by: Hankerton
I'm sorry, I should have clarified. Failure takes presedence over anything else. They would all have to pass for it to say Pass. Only one would have to Fail to say "Fail". But I don't want to include a whole column, just a section of a column (e.g. E7:E25)
Originally posted by: theknight571
How bout this:
=IF(ISNA(VLOOKUP("fail",E7:E25,1,FALSE)),"Pass","Fail")
This way, if Fail shows up anywhere in the column range it returns Fail.
So if they all say Pass it returns Pass, if any cell in the range says Fail, then it returns Fail no matter how many other cells say Pass.
At least that's how I'm understanding the requirement.
🙂
Originally posted by: dullard
Oh, I like this version:
=IF(COUNTIF(E7:E25,"fail")>0,"Fail",IF(COUNTBLANK(E7:E25)>0,"Tests are incomplete",IF(COUNTIF(E7:E25,"pass")=COUNTA(E7:E25),"Pass","Indeterminant")))
[*]If any cell says "fail", then it says fail.
[*]If any cell is blank, it says that the tests are incomplete.
[*]If any cell is inappropriately answered, it says it is indeterminant.
[*]If all cells say "pass", then it says pass.