Match and Index

Copper Contributor

I need help with my excel spreadsheet. I am trying to use match and index and I cannot seem to get it to work.  I have a column with numbers ranging between 1 and 100. I need a second column to look at the number then match it up and give that number a rating. so if the number is 84.29 then it would return a 1 in the other column and so on. I have included a sample sheet. 

 

4 Replies

If you update a bit the definition of the ranges like here

image.png

the formula is

=LOOKUP(E5,$A$4:$C$4,$A$2:$C$2)
The formula in F5 is:
=LOOKUP(E5,
{0,80,90},
{2,1,0})
Hello Sergei,
The values of B4 and C4 should be 80 and 90, respectively. Thereby, lookup values of 79.99, 80, 89.99, and 90 will return 2, 1, 1, and 0, respectively.
Twifoo

Sure, thank you for the correction