Either:
In the course of this we'll see the importance of absolute cell addressing
| Using a Lookup Table to convert letter grades to numbers | ||||||
| Course | Grade | Value | Credits | Grade Points | Grade | Value |
| International Cuisine and cooking | A | 4 | 3 | A | 4 | |
| Car Mechanics for left handers | B- | 2.67 | 4 | A- | 3.67 | |
| Social Implications of Molluscs | C | 2 | 3 | B+ | 3.33 | |
| Archnophobia in Prussian Empire | B+ | D26
#N/A VLOOKUP(C26,H26:I36,2,FALSE) |
4 | B | 3 | |
| Old people's Activism | A- | #N/A VLOOKUP(C27,H27:I37,2,FALSE) |
2 | B- | 2.67 | |
| C+ | 2.33 | |||||
| GPA | C | 2 | ||||
| C- | 1.67 | |||||
| D+ | 1.33 | |||||
| D | 1 | |||||
| F | 0 | |||||
7) Take a look at the formula in cell D26. It's giving a
#NA error. Can you suss out why by looking at the formula?
Hint: Is the table range staying the same? Don't you want it to?
8) Let's use absolute addressing for the table range which puts "$"
signs in front of column letters and row numbers, so $H$23:$I$33.
9) Now when we copy this to the other cells, the lookup table stays in the right
place.
10) Calculate Grade Points = Value * Credits and put the sum in cell F29.
11) Sum Credits in E29
12) Grade Point Average is Sum Grade Points / Sum Credits.
Here's a graphic illustration of the correct completed VLOOKUP:
