Forum Discussion

norcalgirl77's avatar
norcalgirl77
Copper Contributor
Mar 05, 2019

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. 

 

  • Twifoo's avatar
    Twifoo
    Silver Contributor
    The formula in F5 is:
    =LOOKUP(E5,
    {0,80,90},
    {2,1,0})
    • Twifoo's avatar
      Twifoo
      Silver Contributor
      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

Resources