students marks to grades (using if and logical operation)

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
What is the best way to convert numbers to grades. For example

0 to 50 is F
50 - 60 is C
60 - 70 is B
70 - 80 is A
80 - 100 is A+

What is the best way or formula to do so. I was thinking of If() with logical operations like AND, OR etc

Any idea would be very much appreciated. Thanks
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
What is the best way to convert numbers to grades. For example

0 to 50 is F
50 - 60 is C
60 - 70 is B
70 - 80 is A
80 - 100 is A+
Can you clarify which grades 50, 60, 70 and 80 belong to (you have them listed for two grades each)?
 
Upvote 0
Thanks for you reply. Yes I think I should not include them in 2 different ranges. thank you.

0 to 49 is F
50 - 59 is C
60 - 69 is B
70 - 79 is A
80 - 100 is A+
 
Upvote 0
Where A1 has the number
Code:
=VLOOKUP(A1,{0,"F";50,"C";60,"B";70,"A";80,"A+"},2)
 
Upvote 0
Here is another formula you can try...

=LOOKUP(A1,{0,50,60,70,80,90,101},{"F","C","B","A","A+","A+"})
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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