• 462K Members
• 5,282 Online
• 559K Conversations

## Match and Index

Occasional Visitor

# 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.

4 Replies

# Re: Match and Index

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)`

# Re: Match and Index

The formula in F5 is:
=LOOKUP(E5,
{0,80,90},
{2,1,0})

# Re: Match and Index

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

# Re: Match and Index

Sure, thank you for the correction

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies