=IF(ISERROR(FIND(“XXXXX”,G1)),IF(ISERROR(FIND(“YYYYY”,G1)),””,VLOOKUP(P25, ‘Safety port group’!C:F, 4, FALSE)),VLOOKUP(P25, ‘Safety port group’!C:F, 4, FALSE))
mike – I think he’s looking to test for the search string appearing in the target string, not matching it.
This formula above uses FIND. If it cant find the string it will return an error, it will then check for the second string and again if it cant find it will return an error. The ISERROR function converts that return error into a TRUE or FALSE statement from which you can trigger either the VLOOKUP function or a nothing “”