fast-formula-parser icon indicating copy to clipboard operation
fast-formula-parser copied to clipboard

SEARCH and COUNTIF array criteria breaking

Open pb-0 opened this issue 2 years ago • 0 comments

SEARCH and COUNTIF seem not to support arrays in criteria argument. For both functions, only the first element is evaluated.

For example, SEARCH evaluates "outlook.com" but not "gmail.com":

IF(SUMPRODUCT( -- ISNUMBER(SEARCH({"outlook.com", "gmail.com"},A1)))>0,A1,RIGHT(A1,LEN(A1)-FIND("@",A1)))

A1: [email protected]

--> result: gmail.com

A1: [email protected]

--> result: [email protected]

Same in COUNTIF

pb-0 avatar Aug 15 '23 21:08 pb-0