excel copying string found from cell one to a new cell

时间:2017-04-06 16:55:45

标签: excel search excel-formula

I have a formulas that is currently only returning true/false, I wanted to improvise it instead of returning true/false, can I get the string that is found and copy it to another cell?

here is the formula that I use :

=NOT(NOT(SUM(--NOT(ISERR(SEARCH($D$2:$D$21;$B2))))))

thank you

1 个答案:

答案 0 :(得分:0)

Try,

=INDEX(D:D, AGGREGATE(15, 6, ROW(D2:D21)/SIGN(SEARCH(D2:D21, B2)), 1))

enter image description here