Largest Letter

suechetty

New Member
Joined
Jul 4, 2020
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Hello,
I would like a formula to say "OK" if Grade 1 is the highest grade compared to Grade 2 and Grade 3. What formula can I use please?
Also, is there a way I can use conditional formatting to highlight Grade 1 cell if it is the highest grade?

Thank you for the help.
Example
Grade 1Grade 2Grade 3
ABBOK
CBANO
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi & welcome to MrExcel.
How about
+Fluff New.xlsm
GHIJ
1Grade 1Grade 2Grade 3
2ABCOK
3BACNo
4CBANo
5BBCOK
Master
Cell Formulas
RangeFormula
J2:J5J2=IF(AND(G2<=H2,G2<=I2),"OK","No")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G2:G5Expression=J2="OK"textNO

Wasn't sure what you wanted for row 5, if it should be No then change <= to <
 
Upvote 0
If you have a lot more columns to check, you could use
=IF(G2=CHAR(MIN(CODE(G2:I2))),"OK","No")
 
Upvote 0
Neither of them will work if you have grades like A*
Can you post a more realistic sample of your data.
 
Upvote 0
Neither of them will work if you have grades like A*
Can you post a more realistic sample of your data.

I've used your formula and it worked for A,B,C,D,E,U. It don't work when A* is the highest grade. I normally use tilda ~ for A~* but that don't work too.
B CBOK
C DBNo
C C COK
C C COK
BC COK
B A*ANo
C B BNo
C C COK
C C BNo
B BBOK
A*AA
A*AA
 
Upvote 0
Your original message said nothing about letters with asterisks. So we have the complete picture...

1) Can any other letters have an asterisk attached to them or is it only the letter A?

2) Are there any other symbols that can be attached besides an asterisk? If yes, what are they and how do they affect the grade ordering?



You might find this short advice message that I have posted in the past to be of some help with future questions...

Please Note
-------------------
For future questions you may ask, please do not simplify your question for us... doing so will get you a great answer to a question you do not actually have and which you do not actually care about AND it will almost always lead to you coming back for help when the solution we give you for the simplified question cannot be applied to your actual data and its layout. One thing you must keep in mind when you ask a question in a forum... the people you are asking to help you know absolutely nothing about your data, absolutely nothing about how it is laid out in the workbook, absolutely nothing about what you want done with it and absolutely nothing about how whatever it is you want done is to be presented back to you as a result... you must be very specific about describing each of these areas, in detail, and you should not assume that we will be able to "figure it out" on our own. Remember, you are asking us for help... so help us to be able to help you by providing the information we need to do so, even if that information seems "obvious" to you (remember, it is only obvious to you because of your familiarity with your data).
 
Upvote 0
Your original message said nothing about letters with asterisks. So we have the complete picture...

1) Can any other letters have an asterisk attached to them or is it only the letter A?

2) Are there any other symbols that can be attached besides an asterisk? If yes, what are they and how do they affect the grade ordering?



You might find this short advice message that I have posted in the past to be of some help with future questions...

Please Note
-------------------
For future questions you may ask, please do not simplify your question for us... doing so will get you a great answer to a question you do not actually have and which you do not actually care about AND it will almost always lead to you coming back for help when the solution we give you for the simplified question cannot be applied to your actual data and its layout. One thing you must keep in mind when you ask a question in a forum... the people you are asking to help you know absolutely nothing about your data, absolutely nothing about how it is laid out in the workbook, absolutely nothing about what you want done with it and absolutely nothing about how whatever it is you want done is to be presented back to you as a result... you must be very specific about describing each of these areas, in detail, and you should not assume that we will be able to "figure it out" on our own. Remember, you are asking us for help... so help us to be able to help you by providing the information we need to do so, even if that information seems "obvious" to you (remember, it is only obvious to you because of your familiarity with your data).

Hello,

Apologies for the incomplete picture. You are correct, I didn't mention the asterisk. A* is the only grade with special symbols. These are all the grades.
A*
A
B
C
D
E
U

Thank you so much for the help.

Suechetty
 
Upvote 0
Probably be a neater way, but how about

+Fluff New.xlsm
GHIJ
1Grade 1Grade 2Grade 3
2BCBOK
3CDBNo
4CCCOK
5CCCOK
6BCCOK
7BA*ANo
8CBBNo
9CCCOK
10CCBNo
11BBBOK
12A*BAOK
13AA*CNo
Master
Cell Formulas
RangeFormula
J2:J13J2=IF(LEN(G2)=1,IF(AND(CODE(G2)=MIN(CODE(G2:I2)),SUM(--ISNUMBER(FIND("*",H2:I2)))=0),"OK","No"),"OK")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G2:G13Expression=J2="OK"textNO
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

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