February 23, 200718 yr I want to remove everything left of @ from email address field. I'm having trouble figuring out the calculation. I want my end result to be @domainname.com.
February 23, 200718 yr Jeff: Assuming that you're only dealing with valid email addresses (i.e., something in the format '[email protected]'), you can use Position() to find where the '@' is, and then Length() and Right() to extract the data you want. The calculation would go like this, where the text field in question is called 'Email'. Right(Email,(1+Length(Email)-Position(Email,"@",1;1)) Which evaluates like this, for an email value of '[email protected]': Right('[email protected]', 1+9-3) or: Right('[email protected]',7) which gives you: @me.com To just get the domain itself (without the '@', remove the '1+' in the equation. -Stanley
Create an account or sign in to comment