Forum Discussion
norcalgirl77
Mar 05, 2019Copper Contributor
Match and Index
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.
- TwifooSilver ContributorThe formula in F5 is:
=LOOKUP(E5,
{0,80,90},
{2,1,0}) If you update a bit the definition of the ranges like here
the formula is
=LOOKUP(E5,$A$4:$C$4,$A$2:$C$2)
- TwifooSilver ContributorHello 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.
TwifooSure, thank you for the correction