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: Changing Multiple Cells at Once.
by Allen Wyatt
(last updated November 11, 2017)
David has several non-adjacent cells that each contain the same formula. He needs to change the formula in all the cells to something else. He knows he can change the formula in one of the cells and then copy the formula to the other cells, but he's wondering if there is a way to change the formula in all the cells at the same time, without the need to do the copy/paste operation.
If you want to retype the formula from scratch, Excel actually provides a shortcut to do this: Ctrl+Enter. All you need to do is create a selection set of the cells you want to edit. (Selection sets are created by clicking on a single cell then, as you hold down the Ctrl key, clicking on other cells you want included in the set.) Type the formula you want to appear in each cell in the set, then press Ctrl+Enter.
If you want to change an existing formula in the cells, simply create your selection set of those cells and then use Find and Replace to search for the formula you want to change. You can easily click on Replace All in the dialog box to change all the cells at once. (Remember—this approach will only work properly if the formulas in the cells are all exactly the same.)
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (11923) 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: Changing Multiple Cells at Once.
Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!
Tired of the Find and Replace dialog box blocking the view of your worksheet when you are searching for information? Do ...Discover More
Want to select all the data in a contiguous section of a worksheet? The shortcut discussed in this tip makes it very easy.Discover More
Don't want to always type the decimal point as you enter information in a worksheet? If you are entering information that ...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.