Returing a value depending on hi-lo range

G

Guest

Hi

Consider the following table showing scores if a value falls into certain grade "bands"...

High low Score
100 75 A
74 50 B
49 25 C
24 0 D

I have a series of values (eg, "52") that I'd like to place in the appropriate range (ie above the low value but below the high value) and return the relevant value from the "Score" column. So if my value was "52", it would return "B".

I can produce a long formula using nested IF statements, but I'd like a neater solution. Any idea's ??

Thanks
John P
 
A

Alan

With the low values and scores arranged like this in E12:F15 and your value
"52" in H14

0 D
25 C
50 B
75 A

=VLOOKUP(H14,E12:F15,2)


John Phillips said:
Hi

Consider the following table showing scores if a value falls into certain grade "bands"...

High low Score
100 75 A
74 50 B
49 25 C
24 0 D

I have a series of values (eg, "52") that I'd like to place in the
appropriate range (ie above the low value but below the high value) and
return the relevant value from the "Score" column. So if my value was "52",
it would return "B".
 
L

L. Howard Kittle

Hi John,

Another way:

=LOOKUP(C1,{0,25,50,75},{"D","C","B","A"})

Enter the score in C1.

HTH
Regards,
Howard

John Phillips said:
Hi

Consider the following table showing scores if a value falls into certain grade "bands"...

High low Score
100 75 A
74 50 B
49 25 C
24 0 D

I have a series of values (eg, "52") that I'd like to place in the
appropriate range (ie above the low value but below the high value) and
return the relevant value from the "Score" column. So if my value was "52",
it would return "B".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top