Results 1 to 6 of 6
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Posts
    313
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Grade sheet (2000/xp)

    I am trying to help a professor with this formula. We cannot get it to work.
    The formula below works fine as it is but when we try to continue with the second part, it fails.
    =IF(O3>=93,"A",IF(O3>=90,"A-",IF(O3>=87,"B+",IF(O3>=83,"B",IF(O3>=80,"B-",IF(O3>=77,"C+",IF(O3>=73,"C",IF(O3>=70,"C-",Q3))))))))
    I was unable to add the portion below to the above formula
    =IF(O3>=70,"",IF(O3>=67,"D+",IF(O3>=63,"D","E")))

    thanks for any suggestions..

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Grade sheet (2000/xp)

    It's much easier to use a table with scores and grades here and use the VLookup function. See the attached worksheet.
    Attached Files Attached Files

  3. #3
    3 Star Lounger
    Join Date
    Apr 2002
    Location
    Redditch, Worcestershire, England
    Posts
    233
    Thanks
    0
    Thanked 22 Times in 21 Posts

    Re: Grade sheet (2000/xp)

    As HansV says, a lookup table is much better.

    I believe there is a limit of 7 with nested functions (e.g. nested IFs)

    Jeremy

  4. #4
    3 Star Lounger
    Join Date
    Jan 2001
    Posts
    313
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Grade sheet (2000/xp)

    Thank you so much. I will certainly give this to him. I didn't realize the limit of 7 nested ifs. I hope that will convince him to use the Vlookup.

    thanks again.

  5. #5
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,054
    Thanks
    2
    Thanked 417 Times in 346 Posts

    Re: Grade sheet (2000/xp)

    If you don't want to use a lookup table (which I think is the better way to go, because they're much easier to maintain), you could use:

    =IF(IF(O3>=93,"A",IF(O3>=90,"A-",IF(O3>=87,"B+",IF(O3>=83,"B",IF(O3>=80,"B-",IF(O3>=77,"C+",IF(O3>=73,"C","")))))))<>"",IF(O3 >=93,"A",IF(O3>=90,"A-",IF(O3>=87,"B+",IF(O3>=83,"B",IF(O3>=80,"B-",IF(O3>=77,"C+",IF(O3>=73,"C",""))))))),IF(O3>=70 ,"C-",IF(O3>=67,"D+",IF(O3>=63,"D","E"))))

    The difference between what you were doing and what I've done is that my rendition of the formula tests only down to grade C before passing a null result ("") to a second set of statements for the remaining tests. As you can see, though, things get pretty ugly when using more than 8 if statements - anything much more than the above solution will also run up against other Excel limits too.
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  6. #6
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,054
    Thanks
    2
    Thanked 417 Times in 346 Posts

    Re: Grade sheet (2000/xp)

    Here are a couple of other formulae you could use:
    =IF(O3<63,"",IF(O3<70,"D",IF(O3<80,"C",IF(O3<90,"B ","A"))))&IF(O3=100,"+",IF(O3<63,"E",IF(MOD(O3,10) <3,"-",IF(MOD(O3,10)>6,"+",""))))
    which also gives A+ results for 97 and over, or:
    =IF(O3<63,"",IF(O3<70,"D",IF(O3<80,"C",IF(O3<90,"B ","A"))))&IF(O3>96,"",IF(O3<63,"E",IF(MOD(O3,10)<3 ,"-",IF(MOD(O3,10)>6,"+",""))))
    if you don't want A+ results.
    Cheers,

    Paul Edstein
    [MS MVP - Word]

Posting Permissions

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