Find and Replace

Find and Replace option in Excel makes our daily work very easy and It saves a lot of time. For example, if we have to find any text or number in our data and it has to be replaced with some other text or number then it can be done by Find and Replace option in very easy way.

Find and Replace option is available in Home tab>>Find and Select in Editing group.

Shortcut keys: Ctrl+F (for find) and Ctrl+H (for Replace)

Find:

Find window will be opened on pressing Ctrl+F. Below given option is available in find window.

Find Window
Find Window

Find What: In the find what box type the text or number which you want to find in the worksheet or selected range.

Find All: You can find the all text available in the worksheet on selected range which was given in Find What box.

Find All option
Find All option

Below are the box and buttons are available in Find window

Find Next: You will be able to find one by one by using Find Next option.

OptionsThere is an Options button available in find window. If you will click on this button, find window will look like below image.

Options button in Find and Replace Window
Options button in Find and Replace Window

Below given features are visible after clicking on options button

Within: In this option you can choose where you want to find in sheet or in entire workbook.

Within Option in Find and Replace window
Within Option in Find and Replace window

 

Search: In this option you choose the search type like- by column or by row.

Search Option in Find and Replace window
Search Option in Find and Replace window

 

Look in: In this option you choose where do you want to search your text like- in Formulas, in Values or in Comments

Look in option in Find and Replace window
Look in option in Find and Replace window

Match case: This is a check box, if you tick this option then your search will be case sensitive. For example- if you are searching “agent” then it will not search “Agent”

 

Match case check box in Find and Replace window
Match case check box in Find and Replace window

 

Match entire cell contents: This is a check box, if you tick this option then you will be able search the complete contents of the cells. For example- if you are searching “age” then it will not search “Agent”

Match entire cell contents check box in Find and Replace window
Match entire cell contents check box in Find and Replace window

 

Format: By using the format option you can find you text or number only for the particular format.

Search by Format
Search by Format

Replace:

By using the Replace option you can replace you text or number with another.

In Replace window all the option will remain same as Find window only Replace With box, Replace All button and Replace button are extra available.

Find and Replace window
Find and Replace window

Wild Cards: You can use wild card in Find and Replace option.

Let’s say we have the “NAME – EMP ID” column wherein Name and employee id in a single column separated by “ – “.

Name-EMP ID Together
Name-EMP ID Together

If we have to keep only Name and remove the EMP ID then we can do it by Replace option.

  • Select the range on column A.
  • Press Ctrl+H to open Replace window
  • Put “ -*” in Find What box.
  • Put “” (Blank) in Replace with box.
Replace with using Wild Card
Replace with using Wild Card
  • Click on Replace All button.
  • All the employee ids will be replaced with the blanks and only Name will available in column A.
Replaced by using Wild card
Replaced by using Wild card

If we have to keep only Emp ID and remove the Name then we can do it by Replace option.

  • Select the range on column A.
  • Press Ctrl+H to open Replace window
  • Put “* -” in Find What box.
  • Put “” (Blank) in Replace with box.
Replace with using Wild Card
Replace with using Wild Card
  • Click on Replace All button.
  • All the names will be replaced with the blanks and only EMP ID will available in column A.
Replaced by using Wild card
Replaced by using Wild card