Calculate GPA from Grade List

DrDebit

Board Regular
Joined
May 20, 2013
Messages
123
Office Version
  1. 365
Platform
  1. Windows
I am doing admin for a college department. I want to enter the student's grades in A1:A10, for example, and in one cell, to convert those grades to grade points...an A becomes 4.0; a B+ becomes 3.3, etc.

I tried doing a vlookup for multiple lookup values. If I do =vlookup({"A","B+","C"},<lookup array>,2,0), it will work (but each element does a dynamic array and spills into the next column...can i turn that off?). Ah, I digress...

However, I don't want to list the individual grades in an array in the vlookup function, I want to use the cell references, A1:A10. Also, I want to use sumproduct to multiply each grade point by the number of units for that course.

Any ideas? Thank you in advance!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
I would recommend create a lookup table, instead of storing all the values right in your formula, and then using that with VLOOKUP.
See here fro an example.

Once you get that, the SUMPRODUCT should be pretty straightforward. If your units were in cells B1:B10, it would look something like:
Code:
=SUMPRODUCT(A1:A10*B1:B10)
 
Upvote 0
Thank you for this. I was just hoping for a cell solution. Again, many thanks.
 
Upvote 0
I don't want to list the individual grades in an array in the vlookup function,
I was just hoping for a cell solution
Is it that you don't want to list the options in the formula, or you just don't want it to be an array?
If you don't want it to be an array, you would do a nested IF statement.
If you don't want to list the options in the formula, and you don't want to use a lookup table, then really your only other option is to create a User Defined Function in VBA.

So you have a decision to make here.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top