Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Selective Formatting using Find and Replace.

Selective Formatting using Find and Replace

Written by Allen Wyatt (last updated July 22, 2023)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021


1

Andy had a document that used the phrase "n-day" quite a bit, and he wanted the "n" to be in italics but the rest of the phrase in regular type. Faced with the task of making the desired formatting change many times over, Andy searched around for a solution using Word's Find and Replace tool.

Andy could search for "n-day" with no problem. However, there was a problem when trying to change just the "n" to italics because Find and Replace only applies formatting changes to the entire Replace With text, not just selected characters.

The solution was to do a two-pass Find and Replace. In the first pass, Andy changed the entire "n-day" phrase to italics. On the second pass he searched for "-day" (without the "n") and replaced it with a non-italic version. The result was just what he wanted, with only the single character in italics.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (10777) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021. You can find a version of this tip for the older menu interface of Word here: Selective Formatting using Find and Replace.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Creating a Command List

Want a list of all the commands available in Word? You can get one easily by following these steps.

Discover More

Setting a Default Workbook Window Size and Zoom Level

In order to make working with a workbook comfortable, you often need to set both a window size and a zoom level for the ...

Discover More

Filtering to a Date Range in the Past

If you have a large number of data records, each with an associated date, you might want to filter that data so you see ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More WordTips (ribbon)

Reversing Type

Most text appears black on white, not white on black. If you want to change this so that your type is reversed, here's a ...

Discover More

Precise Ruler Adjustments

When adjusting the position of things on the Ruler (like tab stops), you can use the Alt key to get very precise in your ...

Discover More

Automatic Blank Pages at the End of a Section

If you want to have a blank page at the end of a document section, you can insert one manually or you can use the ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is seven minus 2?

2023-07-24 09:33:05

Andrew

My preference here would be to format a single instance of the target text ("n-day") as desired and copy it to the clipboard, and then in a single pass replace all occurrences of "n-day" with "^c" (which means replace it with the contents of the clipboard. This way is much more flexible, especially if the target text's formatting is to be more than a simple one-letter font change.

The two- (or multi-) pass method with Find/Replace is an especially useful technique though, especially for context-sensitive replacements that wildcard searches may be inadequate for.

Andy.


This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.