Excel vlookup function for grades. Calculate letter grade based on score values with vlookup function if the above nested if function is somewhat difficult for you to understand here the vlookup function in excel also can do you a favor. In this example the scores in column f are lookup values for the vlookup function. Here the tablearray is named range as table in formula and b2 is given as cell reference. The column index is provided as 2 since we want vlookup to return a grade from the second column.
You just need to set up a small table that acts as the key with scores on the left and grades on the right. First of all select a couple of columns and write out your grading scale in upside down fashion as shown below. To use wildcards with vlookup you must specify exact match mode by providing false or 0 for the last argument rangelookup. Vlookup provides a quick way of looking up a value from any list or range.
The generic syntax is. Following on from an earlier blog we will now use the vlookup function to convert student percentages to letter grades ranging from f to a. The alphabet v in vlookup stands for vertical so this function is sometimes also called vertical lookup. If not matches then the function looks for the lesser value than the lookup value ie 40 and returns its result.
This step by step tutorial will assist all levels of excel users to calculate grades with vlookup. In this format we are telling vlookup that row 1 says any score above 0 receives an f. Vlookuplookupvalue tablearray colindexnum rangelookup. Vlookup lookupvalue tablearray colindexnum rangelookup.
The vlookup function looks up the value 40 in the marks column and returns the corresponding value if matched. Vlookup what you want to look up where you want to look for it the column number in the range containing the value to return return an approximate or exact match indicated as 1true or 0false. It is generally used to look up a particular value in huge data sheets where manual intervention can be cumbersome. With vlookup we can use the range values in column d to assign the letter grades in column e to all the actual exam scores.
The vlookup function supports wildcards which makes it possible to perform a partial match on a lookup value. How to calculate grades with vlookup in excel while working with excel we are able to lookup a value and retrieve data from a data set using the vlookup function. In its simplest form the vlookup function says. For instance you can use vlookup to retrieve values from a table after typing in only part of a lookup value.