Search code examples
excelexcel-formulaformula

Excel - Multiple word search - Formula


Friends, I need your help on the below

Suppose in column A I have some company names or normal names, I need to do multiple word search in each cell, if matching Yes else No

For example - I want to search Davis and Patel

If A1 has Davis Erik, the result should be Yes If A2 has Sardar Patel, the result should be Yes If A3 has Davis Patel, the result should be Yes If A4 has Pamela Caro, the result should be No

Could you please help here?? Thanks in advance


Solution

  • The below formula worked:

    =IFS(ISNUMBER(SEARCH("Davis",A1)),"Yes",ISNUMBER(SEARCH("Patel",A1)),"Yes",TRUE,"No")
    

    working function