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. ## 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.

3. ## 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. ## 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. ## 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.

6. ## 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.

#### Posting Permissions

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