Thanks Narayan for prompt response.Hi Harish ,
I think your formula is not correctly framed. In the first part of the IF :
=IF(AND($A21<35,$A21<=C$15),$K$15,IF($A21<=C$14,$K$14,IF($A21<=C$13,$K$13,IF($A21<=C$12,$K$12,IF($A21<=C$11,$K$11,IF($A21<=C$10,$K$10,IF($A21<=C$9,$K$9,IF($A21<80,"A","A+"))))))))
the two conditions which are being ANDed are :
$A21 < 35
$A21 <= C$15
C$15 contains 45.
Thus when A21 reaches 35 , the first condition is no longer satisfied. Is this correct ?
Should it not be :
OR($A21<35,$A21<=C$15)
Narayan
Hi Harish ,
I just had another doubt ; your cutoffs are as follows :
45 , 50 , 54 , 59 , 63 , 68 , 73 , 80
The operator signs you have shown are :
<= , <= , <= , <= , <= , <= , <= , >
If we start from the bottom , this means that for marks :
less than or equal to 45 - F
between 46 and 50 inclusive - D
between 51 and 54 inclusive - C
between 55 and 59 inclusive - C+
between 60 and 63 inclusive - B
between 64 and 68 inclusive - B+
between 69 and 73 inclusive - A
above 80 - A+
What happens to marks between 74 and 80 inclusive ?
A similar problem comes up if we start at the top and work our way down the table.
Narayan
Hi Harish
To add to what Narayan has said if you add another table (UPside down) your formula could be this
=VLOOKUP(A21,$M$8:$N$15,2,1)
See Orange in file.
Take care
Smallman
Yes Sir Exactly!Hi Harish ,
After your latest post , I am more confused ; first let us get the limit situations clarified.
You have two absolute limits , a lower limit of 35 , and an upper limit of 80.
Along with this , you also have values in a table , where the lowest row has values :
45 , 53 , 50 , 30 , 49 , 54 , 52
Similarly , the upper most row has the values :
80 , 87 , 85 , 80 , 80 , 80 , 80
Do you mean to say that an F grade is given if the marks are less than the maximum of 35 and the values in the lowest row ?
Similarly , is an A grade given only if the marks exceed the maximum of 80 and the values in the upper-most row ?
Narayan
Mishra Sir,Hi Harish,
Just have a look of attached file (Sheet 2). I had made some mior changes in your Grade Table.
1. I had made your grading up-side down.
2. I had inserted an extra row.
For your required formula I had use LookUP() function.
Regards,
can you imagine how much manual calculation needs to be done for this problem in table 2
Hi Harish ,
I am not so sure that this formula is better than what you already have !
=IF($A21<=MAX(35,MIN(C$8:C$15)),$A$15,IF($A21>=MAX(80,MAX(C$8:C$15)),$A$8,INDEX($A$9:$A$14,MIN(IF($A21>C$10:C$15,ROW(C$10:C$15)-MIN(ROW(C$10:C$15))+1)))))
is to be entered as an array formula , using CTRL SHIFT ENTER. Enter this in B21 , and copy down and across for the grades. For the grade points , you will have to modify it accordingly.
Narayan
Mishra Sir,
Narayan Sir,Hi Harish ,
It is possible I have not understood your problem ; see the uploaded file , which has the same formula.
Narayan