December 1, 201114 yr Hi all Is it possible to sort records by email domain name on a set of contacts records. The way I have thought to do it is to create a variable based on the email - strip out the part before the @ symbol - put it in another field and then sort by that field. Has anyone got any alternatives and is there a function for taking off the first part of the email address Thanks for reading all
December 1, 201114 yr Sounds like a good way to me. Calculated field DomainName = Right(EmailAddr; Length(EmailAddr - Position("@"; EmailAddr; 1; 1)))
December 1, 201114 yr Right(EmailAddr; Length(EmailAddr - Position("@"; EmailAddr; 1; 1))) That doesn't look right.
December 1, 201114 yr That doesn't look right. Boy, I'll say! Much better: Right(EmailAddr; Length(EmailAddr)- Position( EmailAddr; "@";1; 1)) (tested this time!) :rolleyes:
Create an account or sign in to comment