• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Two Substitutions in a Single Formula [SOLVED]

dparteka

Member
Cell A1 has this in it… XZY: 12-345-678-900. I want to use the =SUBSTITUTE function in cell B2 to output the same text as A1 but without dashes and spaces XZY:12345678900. I have been able to eliminate the space and dash individually but have not figured out how to do both in a single formula… can anyone help me?
 
Hi dparteka,


Try this:


Code:
=SUBSTITUTE(SUBSTITUTE(A1,"-","")," ","")


With A1 containing text.


Regards,
 
Faseeh, you make that look too easy, thanks for doing your magic, it works perfectly... best regards...Dennis
 
Back
Top