Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Suppose I have Contact Record with FirstName, LastName and Phone, where in phone i am inserting my Mobile no.

e.g. FirstName: ABC
     LastName : XYZ
      Phone   : 9921125797
   MyFormulaField Fomula is = (FirstName+LastName+Phone)

   MyFormulaField : ABCXYZ(992)112-5797 - This is what I get.
   MyFormulaField : ABCXYZ9921125797 - This is what I want.

Any Suggestions !

share|improve this question
up vote 4 down vote accepted

Using SUBSTITUTE in a formula field is one way where each character you want to remove ('(', ')', '-' and ' ') is replaced by an empty string:

SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(FirstName + LastName + Phone, '(', ''), ')', ''), '-', ''), ' ', '')
share|improve this answer
-Thank You so much. – Nilesh Mendhe Jul 25 '14 at 8:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.