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

Getting Rid of the Startup Document

When you start Word, it opens a blank document, ready for you to start typing within. If you don't want this blank ...

Discover More

Faster Picture Displaying

If you have a document with many graphics, you know that Word can sometimes be slow in displaying all those graphics. ...

Discover More

Differences between SEQ and LISTNUM Fields

Word provides several different fields you can use for custom numbering in a document. Two of the most commonly used are ...

Discover More

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!

More ExcelTips (ribbon)

Removing All Formatting

Getting rid of formatting from a cell or group of cells can be done using several different techniques. This tip ...

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

Cycling through Colors

If you need to easily change the font colors in a group of cells, one of the esoteric commands Excel provides is the ...

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 4 + 4?

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.