


In D2, characters are listed without spaces, unless you wish to eliminate spaces too.To remove those characters from A2, the formula is:įor the formula to work correctly, please take notice of the following things: Can be represented by a text string or a cell reference.įor convenience, we input unwanted characters in some cell, say D2. String - is the original string, or a reference to the cell/range containing the string(s).Once the function gets a name, you can refer to it like any native formula.įrom the user's viewpoint, the syntax of our custom function is as simple as this:
#HOW TO REMOVE SYMBOLS IN WORD 2010 HOW TO#
The parameters will be displayed when you type a formula in a cell.įor the detailed instructions, please see How to name a custom LAMBDA function.
#HOW TO REMOVE SYMBOLS IN WORD 2010 FULL#
This new function is named LAMBDA, and you can find full details about it in the above-linked tutorial. The solution only works in Excel for Microsoft 365Īs you probably know, Excel 365 has a special function that enables you to create your own functions, including those that calculate recursively. The next example demonstrates a more compact and elegant solution. Nested SUBSTITUTE functions work fine for a reasonable number of characters, but if you have dozens of characters to remove, the formula becomes too long and difficult to manage. The same can be done with the help of the CHAR function, where 161 is the character code for "¡" and 191 is the character code for "¿": SUBSTITUTE(SUBSTITUTE(SUBSTITUTE( cell, char1, ""), char2, ""), char3, "")įor example, to eradicate normal exclamation and question marks as well as the inverted ones from a text string in A2, use this formula:
