Best to break into component parts
normalises the strings - removes spaces and replaces with commas and adds a comma prefix and suffix to each string - eg:
becomes
With each term delimited by a comma the next thing is to see if the value of interest (encased within delimiter) appears within the string
If ,E, is found the SEARCH will return a number - if not it will return an Error .. the ISNUMBER will thus return TRUE (found) or FALSE (not found).
The double unary preceding the ISNUMBER test will in turn coerce the Boolean result to Integer equivalent - TRUE equating to 1 and FALSE 0.
The SUMPRODUCT then sums the 1/0 outputs - one output for each string referenced.
Bookmarks