Take the 2-minute tour ×
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.

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

1 Answer 1

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 at 8:07

Your Answer

 
discard

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.