need help on a formula for this problem

W

whassup

supposing im keying in test scores for a test where the full score is
100.
75 marks and over gets a A grade
60 to 74 marks gets a B grade
50 to 59 marks a C grade
49 and below a F grade

what is the formula that i use so that i can key in any random score
from 0 to 100 in one column and the corresponding grade would appear in
another column?

thanks
 
P

Peo Sjoblom

One way with the score in A1

=VLOOKUP(A1,{0,"F";50,"C";60,"B";75,"A"},2)

--
Regards,

Peo Sjoblom

(No private emails please)
 
G

Guest

For a score in cell A1, try this:
A2: =VLOOKUP(A1,{0,"F";50,"C";60,"B";75,"A"},2,1)
Note the curly braces, commas and semicolons.

Does that help?

***********
Regards,
Ron
 
G

Guest

Set up a table in cells a1:b4 like the following

0 F
50 C
60 B
75 A

Name this range "Scores"

In cell D3 enter the test score - as an integer rather than as a percentage.

In cell E3 enter the following formula =VLOOKUP(D3,Scores,2)


Regards

Phil Smith
 

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