Remove pasted spaces that stop names from matching
=TRIM(SUBSTITUTE(B2,UNICHAR(160)," "))Example & expected result
Enter text in B2:B4: B2 = ' North Harbor '; B3 = 'North Harbor' (the middle space is U+00A0); B4 = 'North Harbor ' (the final space is U+00A0). Enter the formula in C2 and fill through C4. The single quotation marks here describe text; do not type them.
C2:C4 each contain the text North Harbor, with one ordinary space and 12 characters.
Excel 2016–2024 / Microsoft 365. SUBSTITUTE converts nonbreaking spaces before TRIM removes outer ordinary spaces and collapses repeated ordinary spaces. This does not remove every Unicode or zero-width character. Keep the source column: repeated spaces may be meaningful in codes.