How to write a ms excel formula for converting marks into grade?

NityanandJi

New Member
How to write a ms excel formula for converting marks into grade- A1- 91-100, A2- 81-90, B1- 71-80, B2- 61-70, C1- 51-60, C2- 41-50, D- 33-40, E1- 21-33, E2- 0-21 marks.

Attachments

• IMG_20210325_184517.jpg
42.3 KB · Views: 2

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

NityanandJi

New Member
=IF(A2>=91,”A1”,IF(A2>=81,”A2”,IF(A2>=71,”B1”,IF(A2>=61,”B2”,IF(A2>=51,”C1”,IF(A2>=41,”C2”,IF(A2>=33,”D”,IF(A2>=21,”E1”,”E2”))))))))

I have written this formula but its not working.

Fluff

MrExcel MVP, Moderator
Hi & welcome to MrExcel.
Excel Formula:
``=LOOKUP(A2,{0,21,33,41,51,61,71,81,91},{"E2","E1","D","C2","C1","B2","B1","A2","A1"})``
or create a lookup table
+Fluff 1.xlsm
ABCDEFG
1
215E2E20E2
322E1E121E1
434DD33D
543C2C241C2
655C1C151C1
761B2B261B2
872B1B171B1
982A2A281A2
1093A1A191A1
Main
Cell Formulas
RangeFormula
B2:B10B2=LOOKUP(A2,{0,21,33,41,51,61,71,81,91},{"E2","E1","D","C2","C1","B2","B1","A2","A1"})
C2:C10C2=VLOOKUP(A2,\$F\$2:\$G\$10,2,1)

Marcelo Branco

MrExcel MVP
Split first column in two columns, Lower and Higher, and try

Pasta1
ABCDEF
291100A191A1
38190A2100A1
47180B181A2
56170B233D
65160C120E2
74150C271B1
83340D18E2
92132E150C2
10020E2
11
Plan3
Cell Formulas
RangeFormula
F2:F9F2=INDEX(C\$2:C\$10,MATCH(E2,B\$2:B\$10,-1))

M.

NityanandJi

New Member
Hi & welcome to MrExcel.
Excel Formula:
``=LOOKUP(A2,{0,21,33,41,51,61,71,81,91},{"E2","E1","D","C2","C1","B2","B1","A2","A1"})``
or create a lookup table
+Fluff 1.xlsm
ABCDEFG
1
215E2E20E2
322E1E121E1
434DD33D
543C2C241C2
655C1C151C1
761B2B261B2
872B1B171B1
982A2A281A2
1093A1A191A1
Main
Cell Formulas
RangeFormula
B2:B10B2=LOOKUP(A2,{0,21,33,41,51,61,71,81,91},{"E2","E1","D","C2","C1","B2","B1","A2","A1"})
C2:C10C2=VLOOKUP(A2,\$F\$2:\$G\$10,2,1)
Thanks Fluff its working perfectly.

Fluff

MrExcel MVP, Moderator
Glad we could help & thanks for the feedback.

Replies
2
Views
268
Replies
25
Views
390
Replies
2
Views
90
Replies
3
Views
146
Replies
1
Views
129

1,130,220
Messages
5,640,962
Members
417,183
Latest member
CuteLeo

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.

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

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