Office Settings & Configuration

How to Find and Replace an Exact Character in Excel

Phi Hung VoPhi Hung Vo Nov 3, 2026 869 views

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.

How to Find and Replace an Exact Character in Excel
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 you start

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.

Solution 1Recommended

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.

1
Open Find and Replace

Press the keyboard shortcut 'Ctrl + H' to open the Find and Replace dialog box.

2
Enter search criteria

Type your target character (e.g., 'x') in the 'Find what' field, and your desired new character or value in the 'Replace with' field.

3
Expand Options

Click the 'Options' button in the dialog box to reveal advanced matching settings.

4
Enable Exact Cell Matching

Check the box next to 'Match entire cell contents'.

5
Execute Replacement

Click 'Find Next' to verify it targets the correct cell, then click 'Replace All' to apply the changes across your worksheet.

Use the "Match entire cell contents" Option
Exact Match Achieved: This completely prevents characters embedded within words (like the 'x' in 'box' or 'text') from being accidentally changed.
Advanced Data Editing

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. 1. Open your file: Launch WPS Spreadsheet and open your existing Excel workbook.
  2. 2. Access Find and Replace: Press 'Ctrl + H' to open the Find and Replace dialog.
  3. 3. Set advanced matching: Click 'Options' and select 'Match entire cell contents' or 'Match case' depending on your needs.
  4. 4. Apply replacement: Enter your target character and new value, then hit 'Replace All'.
Advanced Find and Replace options including Match Entire Cell Contents and Match Case.Fully compatible with Microsoft Excel (.xlsx, .xls) formats.Lightweight, lightning-fast, and free to use for efficient daily office tasks.
microsoft office alternative - wps office

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.