I need help automating several steps I now do in one column to complete my task. The task is to take letter grades run from an Excel column, convert them to numeric values in a new column to the right, and get a numeric average of the values. The column with a letter grade has a special leading character so that has to be removed so only the letter grade is in the cell. Also, not all cells convert to a number because there are blank spaces in the column. What I would like is to run a macro that converts the letter grade to a number (A=4, B=3, C=2, D=1, F=0), removes any cells that are not numbers, and calculates an average of the numbers in the column. Thank you.
Letter Grade | Numeric Value |
B | 3 |
B | 3 |
D | 1 |
A | 4 |
C | 2 |
B | 3 |
#VALUE! | |
#VALUE! | |
#VALUE! | |
A | 4 |
D | 1 |
F | 0 |
A | 4 |
B | 3 |