Forum Discussion
Fcin144
Apr 06, 2024Copper Contributor
Identify if multiple values exist in one cell
I am trying to determine if an email address is for a client, or it is not. So, for example our company email addresses are @nbc.com or abc.com I would like to know if any incoming email are ...
Lorenzo
Apr 06, 2024Silver Contributor
With older version of Excel (but on Mac)
=IF(
SUM( IFERROR( SEARCH({"@abc.com","@nbc.com"}, B3)^0, 0) )
<> COUNTA( FILTERXML("<t><w>" & SUBSTITUTE(B3, ",", "</w><w>") & "</w></t>", "//w") ),
"Yes", "No"
)
- Fcin144Apr 06, 2024Copper ContributorThank you for the reply. I am using Web Version 365.
I tried your recommended statement however it didn't work.
I would like the Client Field in the spreadsheet that stores the cell and the statement to return "Yes" when any other email address besides abc.com or nbc.com is found using the statement.
Just an fyi, the field "B3" in your example is part of a table. I am not sure if that changes anything.
Thanks again in advance.