To replace a letter in Excel, use the Find and Replace dialog (Ctrl+H on Windows, Command+H on Mac) to swap one character for another across a sheet or workbook. For a formula-driven approach that keeps the original data intact, use SUBSTITUTE or REPLACE. The right method depends on whether you want a one-time edit or a live, repeatable change.
What You'll Need
- Excel for Windows, Mac, or the web (labels can differ slightly by version and platform).
- The worksheet or workbook containing the text you want to change.
- Optional: a helper column if you want to keep the original values.
Step-by-Step
Method 1: Find and Replace (quick one-time edit)
- Select the range you want to change. To search the whole sheet, click any single cell; to limit the search to a column or block, highlight that range first.
- Press Ctrl+H (Windows) or Command+H (Mac) to open Find and Replace. On Excel for the web, the same shortcut works in most browsers.
- In the Find what box, type the letter you want to replace, for example
a. - In the Replace with box, type the new letter, for example
e. - Click Find Next to preview each match, or Replace to change the current one. Use Replace All only after you have checked the matches, because it changes every occurrence in the selected scope.
- If you need to match case (replace only lowercase
abut notA), click Options and tick Match case. Clear it if you want both cases replaced. - Close the dialog when done. Press Ctrl+Z immediately if you replaced too much; Find and Replace is undoable as a single action in most cases.
Method 2: SUBSTITUTE formula (keeps the original text)
- Click an empty cell next to your data, for example B2 if your text is in A2.
- Type
=SUBSTITUTE(A2,"a","e")and press Enter. This replaces every lowercaseain A2 withe. - To replace only the second occurrence, add an instance number:
=SUBSTITUTE(A2,"a","e",2). - To make the replacement case-insensitive, wrap the text in LOWER or use a combination such as
=SUBSTITUTE(LOWER(A2),"a","e"); note this also lowercases the rest of the string. - Drag the fill handle down to apply the formula to the rest of the column.
- To turn the results into static text, copy the formula column, then use Paste Special > Values over the original column or a new location.
Method 3: REPLACE function (position-based)
- Use REPLACE when you know the exact position of the letter. The syntax is
=REPLACE(old_text, start_num, num_chars, new_text). - For example,
=REPLACE(A2,3,1,"e")replaces the third character in A2 withe. - This is useful for fixed-format codes, but it is not suitable for finding a letter wherever it appears; use SUBSTITUTE for that.
Common Mistakes
- Replacing across the whole workbook by accident. Find and Replace defaults to the current sheet, but the Within option can be set to Workbook. Check the scope before clicking Replace All.
- Forgetting Match case. Without it, Excel replaces both uppercase and lowercase letters, which can change names and codes unexpectedly.
- Replacing inside formulas. Find and Replace can alter formula text if Look in is set to Formulas. Set it to Values if you only want to change displayed text.
- Using REPLACE when you mean SUBSTITUTE. REPLACE works by position, not by matching a letter, so it will change the wrong character if positions shift.
- Overwriting originals without a backup. Save a copy or work in a helper column before running Replace All on important data.
Tips
- Use Find All first to see a list of every match; this helps you judge whether Replace All is safe.
- Wildcards work in Find and Replace:
?matches any single character and*matches any sequence. Tick Use wildcards in Options if you need them; clear it for literal searches. - To replace a letter only at the start or end of a cell, combine SUBSTITUTE with LEFT, RIGHT, or IF rather than using Find and Replace.
- Keep a helper column until you have verified the results, then paste values and delete the helper.
- For large datasets, formulas are safer than Replace All because you can inspect each result before committing.
Troubleshooting
- Nothing was replaced. Check that you selected the correct range, that Match case is not hiding matches, and that Look in is set to Values rather than Formulas.
- Too much was replaced. Press Ctrl+Z (Windows) or Command+Z (Mac) immediately. If you have already saved, close without saving only if you can afford to lose other changes; otherwise restore from a backup or version history.
- The formula returns #VALUE!. SUBSTITUTE expects text; if the cell contains a number, convert it with TEXT or ensure the cell is formatted as text.
- Only some occurrences changed. SUBSTITUTE with an instance number replaces just that occurrence. Remove the fourth argument to replace all.
- Find and Replace is greyed out. The sheet may be protected. Unprotect it via Review > Unprotect Sheet if you have the password.
- Excel for the web behaves differently. Some advanced options are limited; use the desktop app for wildcard searches or workbook-wide replacement.
Frequently Asked Questions
Can I replace a letter only in part of a worksheet?
Yes. Select the range first, then open Find and Replace. Excel limits the search to the selected cells.
Does Find and Replace work on formulas?
It can, if Look in is set to Formulas. Be careful: changing formula text can break calculations. Set it to Values to change only displayed results.
How do I replace a letter without changing the original cell?
Use a formula such as =SUBSTITUTE(A2,"a","e") in a helper column, then copy and paste values if you want to keep the result.
Can I replace multiple different letters at once?
Not in a single Find and Replace pass. Run separate replacements, or nest SUBSTITUTE functions: =SUBSTITUTE(SUBSTITUTE(A2,"a","e"),"b","f").
Why does Replace All change uppercase letters too?
Because Match case is off. Turn it on in Options to replace only the exact case you typed.
Is there a way to undo a Replace All after saving?
Ctrl+Z works only before saving. After saving, use File > Info > Version History if the file is stored on OneDrive or SharePoint, or restore from a backup.