Calculate Fail, Pass, Merit or Distinction based on Numerical Value

haydencohen

New Member
Joined
Oct 23, 2015
Messages
9
Hi,

I'm trying to calculate whether someone has received a fail, pass, merit or distinction based on the range between two values. The range is detailed in a separate worksheet. In one worksheet:

FAIL 49
PASS 50
MERIT 60
DISTINCTION 70

In the main worksheet there is a figure, let's say 52. This would be a PASS. Is there a way for the cell to state PASS as 52 is between the ranges without using a horrendously long IF function?

I feel like something with VLOOKUP or INDEX-MATCH may do the trick, but it's proving complicated

All help would be much appreciated,


Hayden
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Welcome to the board..
IF that range detail is speareted into 2 columns, say A and B
A2 = Fail
B2 = 49
A3 = Pass
B3 = 50
etc..

Although the FAIL value shold probably be 0, if you're saying anything less than 50 is FAIL.

You could do
=LOOKUP(D2,B$2:B$5,A$2:A$5)

D2 is the value to rank..
 
Upvote 0
Try

=LOOKUP(A1,{0,50,60,70},{"Fail","Pass","Merit","Distinction"})
 
Upvote 0

Forum statistics

Threads
1,223,247
Messages
6,171,007
Members
452,374
Latest member
keccles

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