Excel Index Match with text string -


enter image description herei trying write formula allow me return value based on being matched short text string contained in longer text string. please see below. "unit time" column in second table retrieve corresponding value first table matching shorter text string in product column of first table in longer product name in second table. thoughts appreciated.

thanks

excel

if product xx-xx can use:

=index(b:b,match(left(d2,5),a:a,0)) 

if product can more 2 characters around dash, you'll have use find() formula position of end of product in col d instead of left().

to account row 4 scott pointed out:

=index(b:b,match(left(d2,find("-",d2,4)-1),a:a,0)) 

this find second dash in string , use variable length left() function.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -