I have here an Excel file that checks the presence of:
long hyphen (–)
curly apostrophe (’)
ï (e.g., naïve)
Non-breaking hyphen (‑)
Screenshot 1
Screenshot 2
Cell formula after each header above from Q to T (6th row):
long hyphen (–)
=IFERROR(TRANSPOSE(TEXTSPLIT(TEXTJOIN(", ", TRUE, IF(ISNUMBER(FIND("–", A6:I1000)), CHAR(64+COLUMN(A6:I1000)) & ROW(A6:I1000), "")), ", ", , TRUE)), "No matches found")
curly apostrophe (’)
=IFERROR(TRANSPOSE(TEXTSPLIT(TEXTJOIN(", ", TRUE, IF(ISNUMBER(FIND("’", A6:I1000)), CHAR(64+COLUMN(A6:I1000)) & ROW(A6:I1000), "")), ", ", , TRUE)), "No matches found")
ï (e.g., naïve)
=IFERROR(TRANSPOSE(TEXTSPLIT(TEXTJOIN(", ", TRUE, IF(ISNUMBER(FIND("ï", A6:I1000)), CHAR(64+COLUMN(A6:I1000)) & ROW(A6:I1000), "")), ", ", , TRUE)), "No matches found")
Non-breaking hyphen (‑)
=IFERROR(TRANSPOSE(TEXTSPLIT(TEXTJOIN(", ", TRUE, IF(ISNUMBER(FIND("‑", A6:I1000)), CHAR(64+COLUMN(A6:I1000)) & ROW(A6:I1000), "")), ", ", , TRUE)), "No matches found")
Reset VBA code:
Sub ClearData()
'ClearData
Range("A6:L1000").Select
Selection.ClearContents
Range("A1").Select
End Sub
How to update formula above that could detect the invisible characters pointed in arrows below (after the text is pasted here, the first inv char "U+A0" is removed):
This is the text (same text in the Screenshot 1 above):
See what's hidden in your string…or behind ‑-–’
This is the online tool I usually use to check the invisible characters.
Based on Screenshot 1 above, expected result pointed in arrow below (a formula that identifies the cells that contain invisible character):





