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

NityanandJi

New Member
Joined
Mar 25, 2021
Messages
3
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
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
    IMG_20210325_184517.jpg
    42.3 KB · Views: 75

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
=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.
 
Upvote 0
Hi & welcome to MrExcel.
How about
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)
 
Upvote 0
Split first column in two columns, Lower and Higher, and try

Pasta1
ABCDEF
1LOWERHIGHERGRADEMARKSGRADE
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.
 
Upvote 0
Hi & welcome to MrExcel.
How about
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.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,862
Messages
6,181,466
Members
453,045
Latest member
Abraxas_X

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