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.
Create Custom Apps with VBA! Discover how to extend the capabilities of Office 365 applications with VBA programming. Written in clear terms and understandable language, the book includes systematic tutorials and contains both intermediate and advanced content for experienced VB developers. Designed to be comprehensive, the book addresses not just one Office application, but the entire Office suite. Check out Mastering VBA for Microsoft Office 365 today!
Getting rid of formatting from a cell or group of cells can be done using several different techniques. This tip ...
Discover MoreExcel provides a number of different ways you can apply formatting to a cell based upon various dynamic conditions. One ...
Discover MoreIf you need to easily change the font colors in a group of cells, one of the esoteric commands Excel provides is the ...
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