I have a column in excel with 150 rows with different Email Addresses for different companies. There is one row per company. Each cell contains multiple (up to 26) email addresses in the following format:
I want to limit the email domains that can be used in each row and have a column to indicate if an invalid email domain in being used. In the example above, the following domains should be accepted for each row:
This means that I should have a column with the following status for each row:
Is there a way I can do this with an Excel formula?
Thank you!
I have an idea:
The problem is that I am lost with the first two steps as I don't know how to extract the domains for multiple emails in a single cell.
Here is an option:
Formula in C1
:
=MAP(A1:A4,B1:B4,LAMBDA(a,b,@SORT(IF(ISNA(XMATCH("@"&DROP(TEXTSPLIT(a,"@",";"),,1),TEXTSPLIT(b,", "))),"Fail","Pass"))))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With