# Thread: Fail Result Detector... (Excel97)

1. ## Fail Result Detector... (Excel97)

I got a file that have range from A1:I1. In A1 is item ,
in B1 is name , in C1 is english marks, in D1 is english grade ,
in E1 is history marks, in F1 is history grades , in G1 is geograhy
marks and in H1 is georaphy grades. In I1 is the result whether the student
is fail or pass.

How can I detect the result in I1 based on the range between C1:H1 to detect whether the student fail or
pass. If there any under 39 marks , the result in I1 will show "FAIL". If the marks is 40 and above, the
result will show 'PASS'

Many thanks

2. ## Re: Fail Result Detector... (Excel97)

Do you want the cells in column "I" to show "fail" if they failed -any one- of the three subjects?

If so, for cell I2, enter =IF(OR(C2<40,E2<40,G2<40),"FAIL","PASS"), and copy it down to other applicable cellls in that column. I'm glad I didn't have you for a teacher!

Also, depending on how you grade, you could use a formula to determine the grade based on marks, for example if:

<30 = f
30 - 39 = d
40 - 49 = c
50 - 59 = b
60 - 70 = a

in cell C2 you could use =CHOOSE(1+(C2>29)+(C2>39)+(C2>49)+(C2>59),"f","d", "c","b","a"), and copy it to other applicable cells.

3. ## Re: Fail Result Detector... (Excel97)

IF(OR(C2<40,E2<40,G2<40),"FAIL","PASS")

this formula is working..but it still shows
fail when there is no data..how can it be empty
when there is no data across the range filled..many thanks again..

4. ## Re: Fail Result Detector... (Excel97)

To answer your question, the original formula assumes that an empty cell is a zero score. This formula in cell I2 will avoid that problem:

=IF(OR(ISBLANK(C2),ISBLANK(E2),ISBLANK(G2)),"",IF( OR(C2<40,E2<40,G2<40),"FAIL","PASS"))

5. ## Re: Fail Result Detector... (Excel97)

Thanks John..it works like charms.thanks again

6. ## Re: Fail Result Detector... (Excel97)

<pre>IF(OR(C2="",E2="",G2=""),"",IF(OR(C2<40,E2<40 ,G2<40),"FAIL","PASS"))
</pre>

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•