Ellis has a large worksheet where formulas have been copied down thousands of rows. Over time, some of the formulas were accidentally replaced with explicit values. He wonders if there is a way to quickly identify the cells in the column that contain constants instead of formulas.
Yes, there is a quick way, but first you need to make a decision. Do you want to simply highlight constants, as they are now, or do you want to set up a conditional formatting rule that will highlight any constants that may be added in the future?
If you want to highlight the current constants, start by selecting the cells you want to check. For instance, if Ellis has his formulas (and occasional constants) in column D, then he can select column D. With this prep work done, follow these steps:

Figure 1. The Go To Special dialog box.
At this point you can easily scroll through your worksheet and identify those cells in column D that contain constants instead of formulas.
If you want to use a conditional formatting rule to highlight constants, follow these steps:

Figure 2. The New Formatting Rule dialog box.

Figure 3. Use a Formula to Determine Which Cells to Format.
=AND(NOT(ISFORMULA(D1)),NOT(ISBLANK(D1)))

Figure 4. The Format Cells dialog box.
That's it. Now, any cell to which the rule is applied that doesn't contain a formula will be highlighted as you specified in step 8. The conditional formatting rule makes sure that formulas, blanks, and error conditions resulting from formulas are not highlighted. Thus, only constants will be highlighted. You should note, as well, that the conditional formatting rule will only work if you are using Excel 2013 or a later version. (It was this version when the ISFORMULA function was first introduced.)
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (13999) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Excel in Microsoft 365.
Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel Data Analysis and Business Modeling today!
If you want to format currency values so that Excel uses periods between groups of thousands and commas as a decimal ...
Discover MoreExcel provides a number of different ways you can apply formatting to a cell based upon various dynamic conditions. One ...
Discover MoreWhen your macro checks the formatting used for a cell, it needs to be careful that the type of formatting being checked ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2026 Sharon Parq Associates, Inc.
Comments