How to Find and Replace an Exact Character in Excel
Question details
The user needs to find and replace a specific variable or single character in a spreadsheet without altering words that happen to contain that same character.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Updating variables or specific single-letter designations across a dataset while preserving standard text and words.
- Observed behavior
- A standard Find and Replace modifies all instances of the character, including those embedded within other words, leading to corrupted text.
Before executing a bulk replacement, ensure you do not have multiple merged cells selected, as this can limit the search scope. It is also recommended to review your data to confirm the exact character doesn't naturally occur alone where it shouldn't be replaced.
Use the "Match entire cell contents" Option
This method ensures Excel only replaces the target character when it is the sole content of the cell, leaving words that contain the character untouched.
By default, Excel searches for your target text anywhere within a cell. By enabling advanced search options, you can force Excel to only recognize cells where the variable is the exact and only content.
Press the keyboard shortcut 'Ctrl + H' to open the Find and Replace dialog box.
Type your target character (e.g., 'x') in the 'Find what' field, and your desired new character or value in the 'Replace with' field.
Click the 'Options' button in the dialog box to reveal advanced matching settings.
Check the box next to 'Match entire cell contents'.
Click 'Find Next' to verify it targets the correct cell, then click 'Replace All' to apply the changes across your worksheet.

Enable "Match case" for Case-Sensitive Variables
Use this alongside or independently of cell matching if your exact character relies on uppercase or lowercase distinctions.
Easily Find and Replace Exact Characters with WPS Spreadsheet
WPS Spreadsheet offers identical advanced Find and Replace functionalities to seamlessly edit your data. You can match entire cell contents or exact cases with just a few clicks, without worrying about accidental text corruption.
- 1. Open your file: Launch WPS Spreadsheet and open your existing Excel workbook.
- 2. Access Find and Replace: Press 'Ctrl + H' to open the Find and Replace dialog.
- 3. Set advanced matching: Click 'Options' and select 'Match entire cell contents' or 'Match case' depending on your needs.
- 4. Apply replacement: Enter your target character and new value, then hit 'Replace All'.

Frequently Asked Questions
Can I find and replace a character only if it appears as a whole word in a sentence?
If the character is part of a longer sentence within a single cell, 'Match entire cell contents' will not work because the cell contains other words. Instead, you can search for the character with spaces around it (e.g., type ' x ' in the 'Find what' box). Note that this might miss characters at the very beginning or end of a string.
How do I undo a Find and Replace mistake in Excel?
If you accidentally replaced characters inside other words because you forgot to check the 'Match entire cell contents' box, immediately press 'Ctrl + Z' on your keyboard to undo the 'Replace All' action.
Does the Find and Replace exact match work across multiple sheets at once?
Yes. In the Find and Replace dialog, click 'Options' and change the 'Within' dropdown menu from 'Sheet' to 'Workbook'. When you click 'Replace All', your exact character replacement will be applied across all tabs in the file.




