Results 1 to 6 of 6
  1. #1
    2 Star Lounger
    Join Date
    Jul 2001
    Location
    Kuala Lumpur , MALAYSIA
    Posts
    154
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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
    Attached Files Attached Files

  2. #2
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    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.
    -John ... I float in liquid gardens
    UTC -7ąDS

  3. #3
    2 Star Lounger
    Join Date
    Jul 2001
    Location
    Kuala Lumpur , MALAYSIA
    Posts
    154
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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. #4
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    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"))
    -John ... I float in liquid gardens
    UTC -7ąDS

  5. #5
    2 Star Lounger
    Join Date
    Jul 2001
    Location
    Kuala Lumpur , MALAYSIA
    Posts
    154
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Fail Result Detector... (Excel97)

    Thanks John..it works like charms.thanks again

  6. #6
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Fail Result Detector... (Excel97)

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

    Legare Coleman

Posting Permissions

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