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: 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
Joined
Mar 25, 2021
Messages
3
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
=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
Joined
Jun 12, 2014
Messages
56,915
Office Version
  1. 365
Platform
  1. Windows
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)
 

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
16,528
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
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.
 

NityanandJi

New Member
Joined
Mar 25, 2021
Messages
3
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
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.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,915
Office Version
  1. 365
Platform
  1. Windows
Glad we could help & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
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.
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
Top