Find and Replace in Excel
In this article, I will be explaining the ways of using the FIND and REPLACE tools in excel.
- Shortcut for Find in Excel is CTRL + F
- Shortcut for Find and Replace in Excel is CTRL + H
We can find any text, number symbol, the special character not only in the active sheet but in the entire workbook as well. It does not stop there itself we can find the particular word and REPLACE them with other words as well.
#1 – How to Use Find to Find Specific Word in Excel?
Ok, let me show you the basic find to find the specific word in the worksheet. I have two worksheets in an excel workbook one is Jan month region-wise sales and another one is Feb month region-wise sales.
In the Jan sheet, I want to find the name MITCHEL.
- Step 1: In order to find the name firstly, I need to select the worksheet and press CTRL + F, it will open up the below dialogue box.
- Step 2: Now type the word you want to find in Find what: box.
Note: it is not a case sensitive find it will show you all the related finds.
- Step 3: Now press either enter or FIND NEXT, it will show you the first found MICHEL in this worksheet.
Now look actually I was searching for Mitchel but it has selected Daniel Mitchel for me. So FIND not necessarily looks for exact find word it will show the result even though it is associated with other words as well.
Step 4: Now for sure, there are many MITCHEL in this worksheet. Instead of clicking on FIND NEXT click on FIND ALL, it will lists up all the matching results.
It will show you the Workbook Name, Worksheet Name, Cell, Value in the Cell, and Formula as well if any.
#2 – How to Find the Word in the Entire Workbook?
- Step 1: Whatever I have shown can fetch the word Mitchel from the active sheet only. If you want to find the word from the entire workbook type the word click on Option.
- Step 2: It will expand the current find dialogue box, select WORKBOOK from Within dropdown.
- Step 3: Now click on FIND ALL, it will show all the results.
#3 – How to Find the Exact Word in the Entire Workbook?
Now we know FIND will show all the matching results. If you want to find the exact match under options you need to select the option “Match Entire Cell Contents”.
Click on FIND ALL it will find the exact matches.
#4 – Combination of Find and Replace in Excel
A combination of FIND & REPLACE can do wonders and save tons of time on a daily basis. We can use this tool to change the formula reference.
Now, look at the below image. In cell G3, I have applied the SUM formula to get the total salary.
The formula range is from B2 to B10 but my data has salary column from B2 to B22. Using FIND and REPLACE in Excel we can change the reference.
Copy the entire formula from G3 cell and Press CTRL + H. it will open up the below dialogue box paste the copies formula to Find what:
In Replace with: change the reference as =SUM (B2:B2).
Click on REPLACE, it will change the formula from =SUM (B2:B10) to =SUM (B2:B22) and the total salary will change.
We will look at another technique with the combination of FIND and REPLACE. I have a Product Code and price for each product in one sheet.
In the other sheet, I have Only Product code, using VLOOKUP I need to fetch the data to this sheet.
I cannot apply VLOOKUP here because in the main sheet I have product code as Prdct but in this sheet, I have the code as Pdc, so VLOOUP cannot fetch the data here.
Use FIND and REPLACE Excel option and change the word Pdc to Prdct.
Now click on REPLACE ALL it will replace the words Pdc to Prdct. Now we can apply the VLOOKUP formula.
#5 – FIND and REPLACE Format in Excel
We can not only Excel FIND and REPLACE words, numbers but we can find and replace formats excel as well. No look at the below data.
In the above image, the department Marketing marked in one color except the one in A4 cell. I want to change the color of the remaining marketing color to the one in cell A4.
Step 1: Select the data range.
Step 2: Press CTRL + H and click on Options.
Step 3: Click on the first Format and select Choose format from the cell.
Step 4: Select the format you want to replace.
Step 5: Now click on the second Format and select the format you want to replace with.
Step 6: Click on REPLACE ALL. It will replace the format.
#6 – How to FIND Comments in Excel?
We have come to the final part of the article. We can find the comments as well. Follow the below steps to find comments in excel.
I have comments in column D and comments are No commission, Commission @5%, and Commission @ 10%.
- Step 1: Open Find dialogue box and click on Options
- Step 2: Under Look in select Comments.
- Step 3: Now mention what comment you are searching for.
- Step 4: Click on Find All it will show all the cells which have a comment No commission.
Things to Remember
- If you are searching in a large file it is good to select the particular row or column.
- If you are replacing something always select the replacing region.
- You can replace the existing format with your own format as well.
- If you are searching for something which is not there then excel will show the dialogue box as we couldn’t find what you were looking for.
- You cannot replace it if the worksheet is protected.
This has been a guide to Find and Replace in Excel. Here we discuss how to Find and Replace in Excel using Shortcut Keys along with practical examples and downloadable excel templates. You may also look at these useful functions in excel –