Excel: Search for a list of strings within a particular string using array formulas?

后端 未结 4 1100
余生分开走
余生分开走 2020-11-29 05:20

I want to search a cell for a list of words. I thought this would work as an array formula:

{=FIND(,

        
4条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-29 06:02

    In case others may find this useful: I found that by adding an initial empty cell to my list of search terms, a zero value will be returned instead of error.

    ={INDEX(SearchTerms!$A$1:$A$38,MAX(IF(ISERROR(SEARCH(SearchTerms!$A$1:$A$38,SearchCell)),0,1)*((SearchTerms!$B$1:$B$38)+1)))}
    

    NB: Column A has the search terms, B is the row number index.

提交回复
热议问题