How to remove the diamond with question mark symbol

Excel 365
When you paste or import data into the Excel spreadsheet, you might notice unusual symbols like a diamond with a question mark. The replacement character � (often a black diamond with a white question mark or an empty square box) represents an unknown, unrecognized or unrepresentable character:
Diamond with question mark symbol in Excel 2016

Unfortunately, you can't remove these symbols using the standard Replace procedure. If you select this symbol and paste it into the Replace dialog box, you see the common space symbol:

Find and Replace dialog box in Excel 2016

Even more, if you try to replace it, you will see that Excel replaces all spaces in your spreadsheet:

Find and Replace results in Excel 2016

To remove an unknown symbol from the cell or the entire spreadsheet, you need to find the code of this symbol and then substitute it.

To remove the black diamond with white question mark symbol

Try to use the formula:

= SUBSTITUTE (<cell>, UNICHAR (65533), “”):

Function result in Excel 2016


  • The SUBSTITUTE (<text>, <old text>, <new text>) function substitutes <new text> for <old text> in a <text>.
  • The UNICHAR (<numeric value>) function returns the Unicode character that is referenced by the given <numeric value>.

To remove the rectangular with question mark symbol

Try to use the formula:

= SUBSTITUTE (<cell>, UNICHAR (12), “”):

Function 2 result in Excel 2016

To remove any strange symbol from the cell

Use the formula:

= SUBSTITUTE (<cell>, UNICHAR (UNICODE (<character>)), “”):

Universal function result in Excel 2016


  • The UNICODE (<character>) function returns the number (code point) corresponding to the first character of the text:
Universal function 2 result in Excel 2016

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information you’ve provided to them or they’ve collected from your use of their services.

Learn more