Skip to main content
Business LibreTexts

3.14: Find and Replace

  • Page ID
    46461
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Learning Objectives

    • Find and replace text.

    Find and Replace helps you to find words or formats in a document and can let you replace all instances of a word or format. This is particularly handy in long documents.

    To use Find and Replace, use the shortcut Ctrl+H or navigate to Editing in the Home tab of the ribbon, then choose Replace. To just quickly find something, use the shortcut Ctrl+F (Cmnd+F) or navigate to Home>Editing>Find.

    A blank Microsoft Word document is open and is zoomed in on the ribbon menu. A large green arrow is pointing towards the editing feature and a dropdown menu has been opened leading to four new options. 1.) Find 2.) Replace 3.) Select 4.) Editing

    Replace

    Use the shortcut Ctrl+H or navigate to Home>Editing>Replace to reach the Find and Replace dialog box.

    A replace dialog box is open.

    Type what you want to find in the Find what field, and the replacement in the Replace with field. (Note that you can move the Find and Replace dialog box by clicking the title bar and dragging it elsewhere so you can see what was behind it.)

    Find Next highlights the first occurrence of the Find word. Clicking Find Next again will highlight the second occurrence, clicking Find Next again will highlight the next occurrence, and so on.

    A Microsoft Word document is open with text on it. A find and replace dialog box has been opened. It is on the replace tab of the menu and two edits have been made. In the "Find What" box "Rowango" has been typed and in the "Replace With" box "RowanGo" has been inserted.
    Find Next. The first Rowango is highlighted.

    Clicking Replace replaces only the highlighted occurrence of the Find word.

    A Microsoft Word document is open with text on it. A find and replace dialog box has been opened. It is on the replace tab of the menu and two edits have been made. In the "Find What" box "Rowango" has been typed and in the "Replace With" box "RowanGo" has been inserted.
    Replace. The first Rowango is replaced with RowanGo. The other Rowango words remain the same.

    Replace All replaces every instance of the Find word with the Replace word. A small dialog box will appear to tell you how many replacements were made.

    A Microsoft Word document is open with text on it. A find and replace dialog box has been opened. It is on the replace tab of the menu and two edits have been made. In the "Find What" box "Rowango" has been typed and in the "Replace With" box "RowanGo" has been inserted. On the document 6 areas have been highlighted in green, each representing where the replacements have been made.
    Replace All. Notice that every instance of Rowango has been replaced with RowanGo. (highlighting added for this course and not part of the document)

    The Pitfalls of Replace All

    Be careful when you use Replace All. It will replace every occurrence of the Find phrase, including occurrences you hadn’t intended to replace. For example, replacing every “kg” with “kilogram” could result in the word backilogramround instead of background. Use spaces in the Find field to avoid this: replacing ” kg ” with ” kilogram ” will leave background the way it is. Some versions of Word also have a Whole Words checkbox option; this will ignore when a search term appears in the middle of a word.

    A link to an interactive elements can be found at the bottom of this page.

    Replace: More Options

    Click the More>>> button in the bottom-left corner of the Find and Replace dialog box to find more options. There are many options here, but we will focus on three.

    A find and replace dialog box has been opened. It is on the replace tab of the menu and two edits have been made. In the "Find What" box "Rowango" has been typed and in the "Replace With" box "RowanGo" has been inserted. There are three green numbers in specific points in the dialog box as well. The first one is next to the match case option. The second is next to the format button. The third is demonstrating where the special button can be located.
    1. Match case. Case is whether a letter is uppercase or lowercase. If the Match case box is checked, then Find and Replace becomes case-sensitive. For example, checking the Match case button and then searching for “Fishing Goods” will find “Fishing Goods” but NOT “fishing goods” or “Fishing goods.” If the Match case box is unchecked, then searching for “Fishing Goods” will find “Fishing Goods” and “fishing goods” and “Fishing goods” and so on.
    2. Format. Click the Format button to select from a variety of formatting options such as Font, Paragraph, and so on. When a formatting style is selected for Find, the Find term must have that formatting to be found. (Leave the Find field blank and choose a formatting style to find all occurrences of that formatting.) Similarly, choosing a formatting style for the Replace field will replace the Find term with whatever is in the Replace field with the Replace formatting. For example, this search finds all instances of the word mobile and applies bold and green formatting:
      A Microsoft Word document is open with text on it. A find and replace dialog box has been opened. It is on the replace tab of the menu and two edits have been made. In the "Find What" box "mobile" has been typed and in the "Replace With" box "mobile" has been inserted. In the format section font has been turned to bold and the font color has been changed to green. On the document 28 areas have been highlighted in green, each representing where the replacements have been made.
    3. Special. Special refers to special characters, or characters that are not on the typical keyboard. In Find and Replace, some of these characters can also be things like “any digit” or “any letter.”

    Find Function

    You can also find words with the Find function. Simply finding where a word is used in a document is faster with the Find function.

    To open the Find function, use the shortcut Ctrl+F or navigate to Home>Editing>Find. This will open a Navigation menu to the left.

    A Microsoft Word document is open with text on it. On the left hand side of the document the navigation feature has been opened.

    Type in the Navigation text field that says “Search document” for the term you want to find. The term will be highlighted throughout the document. You can scroll through the document to see the highlighted occurrences, or you can scroll down through the Navigation pane to see where each word occurs in the text.

    A Microsoft Word document is open with text on it. On the left hand side of the document the navigation feature has been opened. In the search box the word "Rowing" has been typed. As a result all six instances where that word can be found are highlighted in a mustard yellow.

    A link to an interactive elements can be found at the bottom of this page.

    Contributors and Attributions

    CC licensed content, Shared previously
    Lumen Learning authored content

    3.14: Find and Replace is shared under a CC BY license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?