Forum Discussion
PuddleRunna
Advocate I
5 years agoCustom column that returns main eMail adress based on similar values
Hi all, Coudln't even come up with a proper subject for this 🙈 I've been stuck on this for ages. I have a table "Employees" looking like this: First Name Name eMail Department Jane...
amitchandak
Super User
5 years agoPuddleRunna , Try new column like
new Department =
var _email = SUBSTITUTE([eMail], "_sec", "") // or use SUBSTITUTE([eMail], "_sec@", "@")
return
if(search("_sec", [eMail],,0) >0 , maxx(filter(Table, [eMail] =_email),[Department]),[Department])
PuddleRunna
Advocate I
5 years agoThanks a lot, Amit! This at least solves my problem for eMails that do not have numbers, which is the majority in this special case 🙂
Is there any way to make it look for eMail adresses that contain the substituted string and return the results?