Retrieving Domain from Email

I was making an app which required partitioning based on the domain of the user email and initially struggled to create the correct expression. The following is a neat little expression that can be used not only for partitioning but for any formula which you want to return the user email domain:

INDEX(SPLIT(USEREMAIL(), โ€œ@โ€), 2)
6 0 428
0 REPLIES 0
Top Labels in this Space