Hi All,
I have a report where I have a customers surname in column B, and then four different email addresses are entered in columns K, L, M and/or M. During a booking journey the same email address can be put into each column, and more than one email address can be put into a column by splitting it with a ";".
=IF(ISERROR(SEARCH($B1,K1)),IF(ISERROR(SEARCH($B1,L1)),IF(ISERROR(SEARCH($B1,M1)),IF(ISERROR(SEARCH($B1,N1)),"",N1),M1),L1),K1)
I have developed this formula to extract all the data from cell if it find the customers surname in that cell. I have then been able to identify if there is more than 1 email address in that cell returned with the below.
=LEN(K2)-LEN(SUBSTITUTE(K2,"@",""))
In a cell I can have Alan.smith@test.com;mona.lively@test.com - the surname is Smith. So I can extract the contents of the cell based on the formula finding Smith, and I can identify there are two emails addresses present (because there are 2 @ symbols).
The next step is for the formaula to only display the alan.smith@test.com - and nothing else. I'm sure this is possible, but I can't wrap my head around it.
Can anyone help?
Thanks,
I have a report where I have a customers surname in column B, and then four different email addresses are entered in columns K, L, M and/or M. During a booking journey the same email address can be put into each column, and more than one email address can be put into a column by splitting it with a ";".
=IF(ISERROR(SEARCH($B1,K1)),IF(ISERROR(SEARCH($B1,L1)),IF(ISERROR(SEARCH($B1,M1)),IF(ISERROR(SEARCH($B1,N1)),"",N1),M1),L1),K1)
I have developed this formula to extract all the data from cell if it find the customers surname in that cell. I have then been able to identify if there is more than 1 email address in that cell returned with the below.
=LEN(K2)-LEN(SUBSTITUTE(K2,"@",""))
In a cell I can have Alan.smith@test.com;mona.lively@test.com - the surname is Smith. So I can extract the contents of the cell based on the formula finding Smith, and I can identify there are two emails addresses present (because there are 2 @ symbols).
The next step is for the formaula to only display the alan.smith@test.com - and nothing else. I'm sure this is possible, but I can't wrap my head around it.
Can anyone help?
Thanks,