Assigning Letter Grades in a grade book

Hi, I would like to assign letter grades automatically by querying the Total column for each student.
I would like the ranges to be set as

90 - 100 = A
80 - 90 = B
70 - 80 = C
60 - 70 = D
< 60 = F

I tried using the IF clause as
=IF(Total >90,"A",IF(Total > 80,"B", IF(Total >70,"C", IF(Total > 60,"D", IF(Total < 60, "F")))))

Somehow, the Letter grade assigned is always F. Any pointers? How can I combine 2 condition checks, such as IF(Total > 80 & < 90)?
Thanks in advance

MacBook, iPhone 8 GB, Mac OS X (10.4.10)

Posted on Sep 11, 2007 8:29 AM

Reply
11 replies

Sep 11, 2007 9:42 AM in response to owensd

Are you sure you aren't dealing with percentage values?

Try this:
=IF(Total >0.90,"A",IF(Total > 0.80,"B", IF(Total >0.70,"C", IF(Total > 0.60,"D", IF(Total < 0.60, "F")))))


In any case, the entire last "IF" can simply be replaced with "F":
=IF(Total >0.90,"A",IF(Total > 0.80,"B", IF(Total >0.70,"C", IF(Total > 0.60,"D", "F"))))

Sep 11, 2007 10:34 AM in response to angeldandruff

Hello

No, VLOOKUP and HLOOKUP are not the same functions. They are not fool in AppleLand 😉

2 is the index of the row from which the function extracts the value to return, given that the first row in the passed cell range is numbered 1.

To be more clear (I apologize but english is not my language) just a sample:

=HLOOKUP(65,A25:G28,3)

means that the function will grab values from the 3rd row in the range 25…28.
Which means that it will peek in row 27.

Neat samples are given in the Help and in the User guide (well done and available for all of us).

Yvan KOENIG (from FRANCE mardi 11 septembre 2007 19:34:10)

Sep 11, 2007 11:10 AM in response to angeldandruff

I have recently made a grade book in Numbers and used the VLOOKUP function, so I can provide more detailed instructions. Just set up a simple table with your thresholds and appropriate grades:

0 F
60 D
70 C
80 B
90 A

In the cell where you want your letter grade, put the function: = VLOOKUP(reference for your Total column, absolute reference for cell-range of your lookup table, 2, TRUE)

For example, if the values for your totals are in a column starting B2, and your lookup table is in E2 to F6, you could put the following in C2: =VLOOKUP(B2, $E$2:$F$6, 2,TRUE), then copy and paste this into the other C column cells. The $ signs are needed so that the lookup table range stays constant (absolute reference). You can do the same with HLOOKUP by putting making your lookup table with letter grades and ranges in rows rather than columns. The big advantage of using this technique is that you can easily change the ranges for each letter grade and automatically see what effect it has.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Assigning Letter Grades in a grade book

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.