Home

Match and Index

%3CLINGO-SUB%20id%3D%22lingo-sub-360779%22%20slang%3D%22en-US%22%3EMatch%20and%20Index%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-360779%22%20slang%3D%22en-US%22%3E%3CP%3EI%20need%20help%20with%20my%20excel%20spreadsheet.%20I%20am%20trying%20to%20use%20match%20and%20index%20and%20I%20cannot%20seem%20to%20get%20it%20to%20work.%26nbsp%3B%20I%20have%20a%20column%20with%20numbers%20ranging%20between%201%20and%20100.%20I%20need%20a%20second%20column%20to%20look%20at%20the%20number%20then%20match%20it%20up%20and%20give%20that%20number%20a%20rating.%20so%20if%20the%20number%20is%2084.29%20then%20it%20would%20return%20a%201%20in%20the%20other%20column%20and%20so%20on.%20I%20have%20included%20a%20sample%20sheet.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-360779%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-361049%22%20slang%3D%22en-US%22%3ERe%3A%20Match%20and%20Index%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-361049%22%20slang%3D%22en-US%22%3E%3CP%3ESure%2C%20thank%20you%20for%20the%20correction%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-360908%22%20slang%3D%22en-US%22%3ERe%3A%20Match%20and%20Index%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-360908%22%20slang%3D%22en-US%22%3EHello%20Sergei%2C%3CBR%20%2F%3EThe%20values%20of%20B4%20and%20C4%20should%20be%2080%20and%2090%2C%20respectively.%20Thereby%2C%20lookup%20values%20of%2079.99%2C%2080%2C%2089.99%2C%20and%2090%20will%20return%202%2C%201%2C%201%2C%20and%200%2C%20respectively.%3CBR%20%2F%3ETwifoo%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-360906%22%20slang%3D%22en-US%22%3ERe%3A%20Match%20and%20Index%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-360906%22%20slang%3D%22en-US%22%3EThe%20formula%20in%20F5%20is%3A%3CBR%20%2F%3E%3DLOOKUP(E5%2C%3CBR%20%2F%3E%7B0%2C80%2C90%7D%2C%3CBR%20%2F%3E%7B2%2C1%2C0%7D)%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-360800%22%20slang%3D%22en-US%22%3ERe%3A%20Match%20and%20Index%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-360800%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20you%20update%20a%20bit%20the%20definition%20of%20the%20ranges%20like%20here%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20485px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F85173iF63335523F9A0075%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Ethe%20formula%20is%3C%2FP%3E%0A%3CPRE%3E%3DLOOKUP(E5%2C%24A%244%3A%24C%244%2C%24A%242%3A%24C%242)%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
norcalgirl77
Occasional Visitor

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

Related Conversations
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
14 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
23 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies