Highest Letter Grade

Xmas

New Member
Joined
Dec 21, 2009
Messages
45
I am trying to use Excel to search a row over a number of columns and return the highest letter-grade in that field. The grades do not follow alphabetical order and some cells have numbers and others letters. The result needs to be displayed on another page in the book.

Any suggestions would be much appreciated.
 

Some videos you may like

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Xmas

New Member
Joined
Dec 21, 2009
Messages
45
Hi,

I will try to give a bit more detail.

I am trying to use Excel to return the highest grade in a field


A B C D
1 34 G 84 MVG
2
3
4

The grading system works like this.
MVG>VG>G>ÄIU

I am not interested in converting numbers to a letter grade. I just want to the highest letter grade in the field.


MVG is the highest grade and ÄIU is the lowest. In the example above I want to be able to automatically return MVG in a cell because it is the highest grade in the field row 1, column A-D.

Any suggestions?
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
With the data in A1:D1...

Control+shift+enter, not just enter:
Code:
=IF(SUM(COUNTIF(A1:D1,{"MVG","VG","G","ÄIU"})),INDEX({"MVG","VG","G","ÄIU"},
   MIN(IF(ISNUMBER(MATCH(A1:D1,{"MVG","VG","G","ÄIU"},0)),
     MATCH(A1:D1,{"MVG","VG","G","ÄIU"},0)))),"Not Available")
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
47,926
Office Version
  1. 365
Platform
  1. Windows
I know I'm a bit late on this question, but a couple of other possibilities:

1. With the list of grades (in order) in the sheet (G1:G4 below) and if #N/A is acceptable in place of the 'Not Available' that Aladin's formula produces, then may be the C+S+E formula in F1 copied down.

2. The non-array formula in I1 copied down.

Excel Workbook
ABCDEFGHI
134G84MVGMVGMVGMVG
2GGVGG
315VG24VGVGGVG
45#N/AAIUNot Available
52822AIUAIUAIU
6
Highest Grade
 

Watch MrExcel Video

Forum statistics

Threads
1,123,271
Messages
5,600,651
Members
414,399
Latest member
Ninjee

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