How to Identify Corrupted Character Encoding in Excel Names
Question details
The user needs to find and identify character encoding errors in names imported from CSV files into Excel using a helper formula.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Importing data from CSV files that contain special or accented characters, leading to character distortion.
- Observed behavior
- Imported names display encoding errors, such as Stéphanie instead of Stéphanie, due to character set mismatches.
Ensure you are using Excel 365 or a newer version, as the solution relies on dynamic array functions like SEQUENCE and TEXTJOIN.
Use a Helper Formula to Detect Unexpected Characters
Use a combination of string functions to test each character in a cell against an allowed alphabet, flagging cells with corrupted text.
This method extracts every single character from the target cell and checks if it exists within the standard English alphabet and spaces. If any character falls outside this expected range (which is common with corrupted encoding characters like é), the formula will return TRUE.
Click on an empty cell in a new column adjacent to the imported name data, for example, cell B2.
Type the following formula: =LEN(TEXTJOIN("",,IF(ISNUMBER(SEARCH(MID(A2,SEQUENCE(1,LEN(A2)),1),"abcdefghijklmnopqrstuvwxyz ")),"",MID(A2,SEQUENCE(1,LEN(A2)),1))))>0
Press Enter to evaluate the formula. Click the fill handle in the bottom-right corner of cell B2 and drag it down to apply the formula to the rest of the column.
Any cell that returns TRUE contains unexpected characters that are likely corrupted from the CSV import.

Prevent Encoding Errors Automatically with WPS Spreadsheet
The best way to handle character encoding issues is to prevent them during the import process. WPS Office Spreadsheet provides an intuitive text import wizard that allows you to preview and select the correct file encoding (such as UTF-8) before the data enters your worksheet, ensuring accented names are displayed perfectly.
- 1. Open WPS Spreadsheet: Launch WPS Office and open a new blank spreadsheet.
- 2. Import the CSV File: Navigate to the Data tab on the top ribbon and click on 'Import Data', then select your CSV file.
- 3. Select UTF-8 Encoding: In the File Conversion dialog box, change the File Origin or Encoding dropdown to UTF-8. You will see the special characters preview correctly.
- 4. Finish the Import: Click OK or Finish to load the names into your spreadsheet cleanly, without any corrupted characters.

Frequently Asked Questions
Why do names from CSV files show corrupted characters in Excel?
This happens when the CSV file was saved with one character encoding (like UTF-8) but Excel opens it using your system's default encoding (like ANSI). The mismatch causes special characters and accents to break and display as unusual symbols.
How can I prevent encoding errors when opening a CSV in Excel?
Instead of double-clicking the CSV file to open it, open a blank Excel workbook. Go to the Data tab, click 'From Text/CSV', select your file, and in the import window, change the 'File Origin' dropdown to '65001: Unicode (UTF-8)' before clicking Load.
How do I fix the corrupted characters once they are identified?
Once you have identified the corrupted characters using the helper formula, you can use the Find and Replace tool (Ctrl+H). Paste the corrupted string (e.g., é) in the 'Find what' field, and type the correct accented letter (e.g., é) in the 'Replace with' field, then click Replace All.
Will this helper formula work on older versions of Excel?
No, the provided formula relies on the SEQUENCE function, which was introduced in Excel 365 and Excel 2021. For older versions like Excel 2016, you would need to use alternative array formula methods combining the ROW and INDIRECT functions, or use Power Query.




