To change text in Excel, double-click the cell you want to modify, type the new text, and press Enter. For larger changes, use the Find and Replace tool (Ctrl + H) to swap specific words across the entire sheet instantly.
Whether you are correcting a typo in a single cell, updating a product name across a thousand rows, or transforming data using formulas, Excel provides multiple ways to modify text. Understanding which method to use depends on whether you need a quick manual fix or a systematic update across a large dataset.
What You'll Need
- A computer with Microsoft Excel installed (Windows or macOS).
- An open Excel workbook containing the text you wish to change.
- Administrative permissions to edit the file (ensure the file is not "Read-Only").
Step-by-Step
Depending on your goal, choose one of the following three methods to change your text. Note that menu labels may differ slightly depending on your version of Excel or your operating system.
Method 1: Manual Editing (Single Cells)
- Select the Cell: Click once on the cell containing the text you want to change.
- Enter Edit Mode: You can do this in one of three ways:
- Double-click the cell.
- Select the cell and press the F2 key on your keyboard.
- Click inside the Formula Bar (the long white bar above the spreadsheet grid).
- Modify the Text: Use your cursor to move to the specific character or word you want to change. Delete the old text and type the new text.
- Save the Change: Press Enter to save the changes and move to the cell below, or press Tab to save and move to the cell to the right.
Method 2: Find and Replace (Bulk Changes)
- Open the Tool: Press Ctrl + H on Windows or Command + Shift + H on Mac. Alternatively, go to the Home tab, click Find & Select in the Editing group, and choose Replace.
- Define the Search: In the "Find what" box, type the exact text you want to remove or change.
- Define the Replacement: In the "Replace with" box, type the new text you want to appear.
- Choose the Scope:
- Click Replace to change the first instance found.
- Click Replace All to change every single instance of that text in the selected area or the entire sheet.
- Confirm: A dialog box will appear telling you how many replacements were made. Click OK.
Method 3: Using Formulas (Dynamic Changes)
- Identify the Target: If you want to change text based on a pattern (e.g., changing "Dept_North" to "North Department"), use a formula in a new column.
- Use the SUBSTITUTE Function: In an empty cell, type
=SUBSTITUTE(A1, "old_text", "new_text"), where A1 is the cell containing the original text. - Apply to All: Click the small green square (fill handle) at the bottom-right corner of the formula cell and drag it down to apply the change to the rest of the column.
- Convert to Static Text: Since the result is a formula, you must convert it to plain text to delete the original column. Copy the new cells, right-click the destination, and select Paste Values (the icon with "123").
Common Mistakes
- Overwriting Data: Clicking a cell once and typing immediately will delete everything previously in that cell. Always double-click or use the Formula Bar if you only want to change part of the text.
- Case Sensitivity: By default, "Find and Replace" is not case-sensitive. If you search for "apple," Excel will also replace "Apple." Check the "Options" button in the Replace menu to enable "Match case" if precision is required.
- Replacing Partial Words: If you search for "cat" and replace it with "dog," a word like "category" will accidentally become "dogegory." To avoid this, check the "Match entire cell contents" box in the Replace options.
- Forgetting to Paste Values: When using formulas to change text, users often delete the original column before "Pasting Values," which results in a
#REF!error because the formula no longer has a source.
Tips
- Use Ctrl + Z: If a "Replace All" action goes wrong and ruins your data, immediately press Ctrl + Z (Undo) to revert the changes.
- Wildcards: You can use an asterisk (*) in the Find box to represent any number of characters. For example, searching for
A*zwill find "Applez" and "Alcatraz." - Formula Bar for Long Text: If a cell contains a long paragraph, editing it inside the cell is difficult. Always use the Formula Bar at the top for better visibility.
- Flash Fill: For complex text changes, type the desired result in the cell next to your data for two or three rows, then press Ctrl + E. Excel will recognize the pattern and fill the rest automatically.
Troubleshooting
If you are unable to change the text, try these steps in order:
- Check for Sheet Protection: If the cells are locked, you will see a warning that the sheet is protected. Go to the Review tab and click Unprotect Sheet. You may need a password.
- Check File Properties: Right-click the file in your folder and select Properties. Ensure the "Read-only" checkbox is unchecked.
- Verify Cell Formatting: If the text doesn't change as expected (e.g., a date changes to a number), check the Home tab > Number format. Change "Special" or "Date" to "General" or "Text."
- Restart Excel: If the program is frozen or not responding to keyboard shortcuts, save your work and restart the application.
Frequently Asked Questions
How do I change text in multiple cells at once without using Find and Replace?
Select all the cells you want to change, type the new text, and press Ctrl + Enter. This will populate every selected cell with the exact same text simultaneously.
Can I change text based on a specific color?
Excel cannot natively "Find and Replace" by color. You must first use Filter by Color (Data > Filter), then select the visible cells and manually change the text or use the Replace tool on the filtered range.
How do I remove all spaces from a cell's text?
Use the Find and Replace tool. In "Find what," press the spacebar once. Leave the "Replace with" box completely empty. Click Replace All.
Why is my text not updating even after I press Enter?
This usually happens if the cell is formatted as "Text" and contains a formula. Change the cell format to "General" in the Home tab, then double-click the cell and press Enter again to trigger the calculation.
How do I change text to all uppercase or all lowercase?
Excel does not have a button for this. Use the formulas =UPPER(A1) for all caps or =LOWER(A1) for all lowercase in a helper column, then copy and paste the results as values.