vba - Extract keywords from Excel or Google spreadsheet column -


i have list of interview responses , want extract keywords(from defined list of keywords) , list them(delimited commas) in column next interview questions. see image reference.

can use formula? or vba? or google sheets script/add-on?

thank help! spreadsheet

in excel:

=textjoin(",",true,if(isnumber(search($a$8:$a$11,a1)),$a$8:$a$11,"")) 

as array formula. needs confirmed ctrl-shift-enter instead of enter when exiting edit mode.

enter image description here


if not have access textjoin() in excel, put in module , use formula described above.

function textjoin(delim string, skipblank boolean, arr)     dim d long     dim c long     dim arr2()     dim t long, y long     t = -1     y = -1     if typename(arr) = "range"         arr2 = arr.value     else         arr2 = arr     end if     on error resume next     t = ubound(arr2, 2)     y = ubound(arr2, 1)     on error goto 0      if t >= 0 , y >= 0         c = lbound(arr2, 1) ubound(arr2, 1)             d = lbound(arr2, 1) ubound(arr2, 2)                 if arr2(c, d) <> "" or not skipblank                     textjoin = textjoin & arr2(c, d) & delim                 end if             next d         next c     else         c = lbound(arr2) ubound(arr2)             if arr2(c) <> "" or not skipblank                 textjoin = textjoin & arr2(c) & delim             end if         next c     end if     textjoin = left(textjoin, len(textjoin) - len(delim)) end function 

in google sheets:

=join(",",filter($a$8:$a$11,isnumber(search($a$8:$a$11,a1)))) 

enter image description here


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -