How to Replace Text in Selected Cells in Excel: 4 Simple Methods

Method 1 – Replace the Text in Selected Cells Using Find and Replace

Steps:

  • Select the range of cells we want to perform find and replace it.
  • Go to Editing > Find or Replace.

  • A dialog box will pop up like the image below.

Excel Replace Text in Selected Cells using Find and Replace feature

  • Type Jonny in the Find what box and click Find All.

3 results are found.

  • Type Johnson in the Replace with box and click Replace All. Select the range again to perform Replace with. Otherwise, it will replace throughout the sheet.

Excel Replace Text in Selected Cells using Find and Replace feature

  •  Click OK in the confirmation box.

  • All 3 findings will be replaced, as you can see in the image below. Since the last text Jonny was not in the selected cells, it remained intact.

Excel Replace Text in Selected Cells using Find and Replace feature


Method 2 – Use a Keyboard Shortcut to Replace Text from Selected Cells

Steps:

  • Select the cells we want to Find and Replace within.

Excel Replace Text in Selected Cells

  • Press CTRL+H and a Find and Replace dialog box will appear.

Excel Replace Text in Selected Cells using Shortcut

  • Continue as in Method 1. In the box, we will type Jonny in Find what and Johnson in Replace with box and click Replace All.

  • Our dataset will look like the following image.

Excel Replace Text in Selected Cells using Find and Replace feature

  • Jonny in cell B14 was not in our selected cell range, so it is not replaced.

Method 3 – Replace the Text by a Wildcard Character

The wildcard is a unique character that helps us to match texts in Excel. Excel has three characters as wildcards to use in formulas: Asterisk (*), Question mark (?), and Tilde(~).

See the use of Asterisk (*) to find and replace text in selected cells.

Steps:

  • Select the cell range you want to check for replacing the text.

Excel Replace Text in Selected Cells using wildcard

  • Press CTRL + H to open the Find and Replace dialog box.
  • In the Find what box, type *Jon.

  • If we use Asterisk (*) at the start and type a specific text, it will find all the text that ends with that text.
  • If we want to find the text by the first few characters, use the following.

  • We want to find text that contains some specific characters in the middle, the follow the technique below.

  • Type Johnson in the Replace with box and click Replace All.

  • Our final result will be as follows.

Excel Replace Text in Selected Cells using wildcard


Method 4 – Replace the Text in Selected Cells for the Entire Workbook

Steps:

  • Open the workbook and press Ctrl + H, which will open the Find and Replace dialog box.
  • Type Jonny and click Find All.

Excel Replace Text in Selected Cells in workbook

  • We have four instances of Jonny in each sheet, so it gets 20 matches.

  • Type Johnson in Replace with box and click Replace All.

Excel Replace Text in Selected Cells in workbook

Click on the sheets and we will find Jonny is Replaced with Johnson.


Practice Workbook


Related Article


<< Go Back to Excel Functions | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Mahbubur Rahman
Mahbubur Rahman

MAHBUBUR RAHMAN is a leather engineer with a talent for Excel and a passion for VBA programming. To him, programming is like a time-saving wizard, making data manipulation, file handling, and internet interactions a breeze. His skill set extends to SPSS, STATA, Deep Neural Networks, and Machine Learning. Holding a B.Sc in Leather Engineering from Khulna University of Engineering & Technology, he's shifted to become a content developer. In this role, he crafts technical content centred around Excel... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo