excel - Vlookup a Cell which Contains a Part of Other Cell but not that Straightforward -


hi guys , excel gurus, stuck 1 excel problem cannot solve. tried using index, match, vlookup no avail.

basically tried getting column d displays value column b if value of column c contains part of value in column a.

so i'm dealing kind of this: fixed table display

+------------------------------------------------------+ | header     column   column b   column c  column d  | +------------------------------------------------------+ | row 1      111        aaa        1111                | | row 2      222        bbb        112                 | | row 3      333        ccc        2225                | | row 4      444        ddd        333                 | +------------------------------------------------------+ 

so expected result be:

+------------------------------------------------------+ | header     column   column b   column c  column d  | +------------------------------------------------------+ | row 1      111        aaa        1111      aaa       | | row 2      222        bbb        112       n/a       | | row 3      333        ccc        2225      bbb       | | row 4      444        ddd        333       ccc       | +------------------------------------------------------+ 

sorry poor table display , explanation. guys.

=index($c$2:$c$5, match(1,if(iserr(find($b$2:$b$5, $d2)),0,1),0)) 

, 5 last data row. enter array formula (ctrl+shift+enter) in e2, drag down.

btw on row 4 gives ccc, not n/a.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -