Finding the index of a matching wildcard in excel

前端 未结 3 905
栀梦
栀梦 2021-01-23 09:20

Given a sheet like so:

Sheet 1

Product Name
-----------------
Fancy Shoes
Plain Shoes
Comfy Slippers
Nice Loafers
Pressed Shirt
Tee Shirt
Collared Button-Up
         


        
3条回答
  •  爱一瞬间的悲伤
    2021-01-23 09:40

    The below is an array formula (entered with Ctrl+Shift+Enter):

    =INDEX(Sheet2!$B$1:$B$5,MATCH(1,MATCH(Sheet2!$A$1:$A$5,Sheet1!A1,0),0))
    

    You can use "Formulas" > "Evaluate Formula" on the cell containing the formula to see how it's working step by step.

提交回复
热议问题