IF AND Syntax

gg

Well-known Member
Joined
Nov 18, 2003
Messages
560
Good Afternoon,
I have a project that requires a grading score based on several criteria. I have to return a "A", "B", "C" or "D" if certain conditions are met.

I have no idea what the syntax should be?

There are 3 criteria's and 4 grades that can be applied.

Criteria 1 Criteria 2 Criteria 3
A <=15 A= 0 A=0
B = 16-100 B = 0 B=1
C = 101-500 C = 1 C=2-5
D > 500 D = >1 D>=5

As mentioned above. I have to return an overall letter grade based on performance measurements of the three criteria.

Does anyone have any idea how to do this?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
How can B be 16-100 and 0 and 1? Can you please provide a sample and expected results?
 
Upvote 0
The first one is easy enough:

[Table="width:, class:grid"][tr][td="bgcolor:#C0C0C0"][/td][td="bgcolor:#C0C0C0"]
A​
[/td][td="bgcolor:#C0C0C0"]
B​
[/td][td="bgcolor:#C0C0C0"]
C​
[/td][/tr][tr][td="bgcolor:#C0C0C0"]
1​
[/td][td="bgcolor:#F3F3F3"]
Number
[/td][td="bgcolor:#F3F3F3"]
Letter
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
2​
[/td][td]
0​
[/td][td="bgcolor:#E5E5E5"]
A​
[/td][td]B2: =MID("ABCD", MATCH(A2, {0,16,101,501}), 1)[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
3​
[/td][td]
15​
[/td][td="bgcolor:#E5E5E5"]
A​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
4​
[/td][td]
16​
[/td][td="bgcolor:#E5E5E5"]
B​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
5​
[/td][td]
100​
[/td][td="bgcolor:#E5E5E5"]
B​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
6​
[/td][td]
101​
[/td][td="bgcolor:#E5E5E5"]
C​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
7​
[/td][td]
500​
[/td][td="bgcolor:#E5E5E5"]
C​
[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
8​
[/td][td]
501​
[/td][td="bgcolor:#E5E5E5"]
D​
[/td][td][/td][/tr]
[/table]


I don't understand the others.
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,264
Members
452,627
Latest member
KitkatToby

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