Results 1 to 6 of 6
Thread: Grade sheet (2000/xp)

20020621, 13:15 #1
 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..

20020621, 13:25 #2
 Join Date
 Mar 2002
 Posts
 84,353
 Thanks
 0
 Thanked 30 Times in 30 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.

20020621, 13:44 #3
 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

20020621, 14:00 #4
 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.

20020623, 23:33 #5
 Join Date
 May 2002
 Location
 Canberra, Australian Capital Territory, Australia
 Posts
 5,138
 Thanks
 2
 Thanked 442 Times in 364 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]

20020624, 03:37 #6
 Join Date
 May 2002
 Location
 Canberra, Australian Capital Territory, Australia
 Posts
 5,138
 Thanks
 2
 Thanked 442 Times in 364 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]