Lookups & formula

RussChilds

Active Member
Joined
Jun 8, 2007
Messages
267
Hi,
I have a simple lookup that converts a mark into a grade. Here's the forumla:

=LOOKUP(D3,Lookups!$L$10:$M$18)

Here's the lookup table values:

0 U
24 G
36 F
48 E
60 D
72 C
84 B
96 A
108 A*

What I want to do now is work out how far off the next grade they are. So if a pupil scores 62 and gets a D. How can I say to get a C he's 10 more points away in a formula?

Many thanks,
Russ
 
Hi,
I have a simple lookup that converts a mark into a grade. Here's the forumla:

=LOOKUP(D3,Lookups!$L$10:$M$18)

Here's the lookup table values:

0 U
24 G
36 F
48 E
60 D
72 C
84 B
96 A
108 A*

What I want to do now is work out how far off the next grade they are. So if a pupil scores 62 and gets a D. How can I say to get a C he's 10 more points away in a formula?

Many thanks,
Russ

=IF(OR(MAX(L10:L18)=D3,D3=""),"","you are "&INDEX($L$10:$L$18,MATCH(D3,L10:L18)+1)-D3&" points away to get "&INDEX($M$10:$M$18,MATCH(D3,L10:L18)+1))
 
Upvote 0

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