Identifying Constants in a Column

Written by Allen Wyatt (last updated August 29, 2026)

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:

  1. Press F5 or Ctrl+G. Excel displays the Go To dialog box.
  2. Click the Special button. Excel displays the Go To Special dialog box. (See Figure 1.)
  3. Figure 1. The Go To Special dialog box.

  4. Click the Constants radio button.
  5. Click OK. Excel modifies the selection so that only those cells containing constants are selected.
  6. Use the controls on the Home tab of the ribbon to format the selected cells. For instance, use the Fill Color tool to fill the cells with yellow or another color.

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:

  1. Select the cells that should all contain formulas. For instance, if the cells are in column D, select all of column D. When you do so, then cell D1 should be the active cell in the selection.
  2. Make sure the Home tab of the ribbon is displayed.
  3. Click the Conditional Formatting tool. Excel displays a series of choices.
  4. Click New Rule. Excel displays the New Formatting Rule dialog box. (See Figure 2.)
  5. Figure 2. The New Formatting Rule dialog box.

  6. In the Select a Rule Type area at the top of the dialog box, choose Use a Formula to Determine Which Cells to Format. (See Figure 3.)
  7. Figure 3. Use a Formula to Determine Which Cells to Format.

  8. In the formula space, enter the following formula:
  9.         =AND(NOT(ISFORMULA(D1)),NOT(ISBLANK(D1)))
    
  10. Click the Format button. Excel displays the Format Cells dialog box. (See Figure 4.)
  11. Figure 4. The Format Cells dialog box.

  12. Using the controls in the dialog box, specify how you want the cells containing constants to be displayed.
  13. Click OK to dismiss the Format Cells dialog box.
  14. Click OK to accept your conditional format.

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.

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 an Index Entry

In order to create an index, you first need to create the entries that will be used to compile the index. Here's how you ...

Discover More

Splitting the Window

Need to work on two different portions of the same document? The solution is to split Word's document window as described ...

Discover More

Assigning a Macro to a Button in Your Text

One way you can access macros is through the use of a button, added directly into the text of your document. This is done ...

Discover More

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!

More ExcelTips (ribbon)

Formatting Currency

If you want to format currency values so that Excel uses periods between groups of thousands and commas as a decimal ...

Discover More

Select One Cell and Make Another Cell Bold

Excel provides a number of different ways you can apply formatting to a cell based upon various dynamic conditions. One ...

Discover More

Checking All Cell Formatting in VBA

When your macro checks the formatting used for a cell, it needs to be careful that the type of formatting being checked ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, 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 7?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

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.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, 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.