As Rubén pointed out in his comment below the original post, there is a semicolon missing. However, that is not the only issue.
If you are wanting to mark all grades of -10 or lower as an F (thus a -9 marked a D- and so on), you have to structure your list differently:
=ArrayFormula(VLOOKUP(AH9,{-100,"F";-9,"D-";-5,"D";-4,"D+";-2,"C-";0,"C";1,"C+";3,"B-";4,"B";5,"B+";7,"A-";8,"A";10,"A+"},2,TRUE))
Think of each number as X and each X,*grade*
pair as "starting at X assign this grade."
I'm guessing you will be wanting to assign more than one person these grades as well. Let's suppose your grades will be assigned in AH2:AH
. Clear, say, AI2:AI
and then use an array formula in AI2
:
=ArrayFormula(IF(AH2:AH="",,IFERROR(VLOOKUP(AH2:AH,{-100,"F";-9,"D-";-5,"D";-4,"D+";-2,"C-";0,"C";1,"C+";3,"B-";4,"B";5,"B+";7,"A-";8,"A";10,"A+"},2,TRUE),"Out Of Range")))
"B+"
and7