Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Replacing Dashes with Periods.
by Allen Wyatt
(last updated February 18, 2017)
If you have a need to normalize the appearance of your data, you might want to replace any dashes in a text string with periods. For instance, if you have a phone number such as "123-555-1212" you might want to change it to "123.555.1212". This is easy to do using the SUBSTITUTE function:
The result is that any dashes appearing in the string in cell A7 are replaced with periods.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2995) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Replacing Dashes with Periods.
Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!
Hate to take your hands off the keyboard while working on a worksheet? Here's one way to activate the Formula Bar without ...Discover More
Need to sum a series of cells that fits some regular pattern? Here are several ways that you can get the summation that ...Discover More
It is easy to use Excel functions to sum values based on criteria you establish, unless those criteria involve the ...Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.