Bill has a large worksheet in which he would like to locate and highlight all the cells that contain static values. He wonders if there is an easy way to fill all those cells with yellow.
There are actually two easy ways, and the method you choose should depend on how you work with data in your worksheet.
The first method is great for data that doesn't change too much. Follow these steps:

Figure 1. The Go To dialog box.

Figure 2. The Go To Special dialog box.
If your data is more dynamic in nature and you want the fill color updated automatically, then you can create a conditional formatting rule to handle the highlighting. Follow these steps:

Figure 3. The New Formatting Rule dialog box.

Figure 4. Use a Formula to Determine Which Cells to Format.
=AND(NOT(ISFORMULA(A1)),NOT(ISBLANK(A1)))
The rule you specified in step 7 results in all non-blank cells that contain constants being highlighted. As your data changes in the worksheet, then the highlighted cells change as well.
Note that this conditional formatting approach will work just fine if you are using Excel 2013 or later, when the ISFORMULA function was introduced. If you are using an earlier version of Excel, then you will need to create a macro that returns TRUE if a cell contains a constant and then reference that function in the formula in step 7.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (10509) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Excel in Microsoft 365.
Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2019 For Dummies today!
Excel allows you to apply all sorts of formatting to the data in your worksheets. If you want to get rid of all that ...
Discover MoreExcel allows you to format numeric data in all sorts of ways, but specifying a number of digits independent of the ...
Discover MoreNeed to get rid of the borders around a cell? The shortcut in this tip can make quick work of this formatting task.
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2026-06-15 14:57:04
John O'Dwyer
"The Copilot answer appears, then after about 10 seconds the text disappears, the start screen returns, and the message 'Something went wrong' is displayed."
2026-06-15 10:17:36
J. Woolley
The Tip specifies this formula for conditional formatting:
=AND(NOT(ISFORMULA(A1)), NOT(ISBLANK(A1)))
Here's an alternate version that might be more efficient:
=NOT(OR(ISFORMULA(A1), ISBLANK(A1)))
However, both are inadequate if your version of Excel supports dynamic arrays because ISFORMULA(...) returns FALSE for each cell in a spill range except the first cell. My Excel Toolbox includes ISFORMULA2(...) to resolve this issue. ISFORMULA2 matches ISFORMULA except ISFORMULA2 returns TRUE for any cell in a spill range. Both functions return TRUE for any cell in a legacy CSE array. And both will accept a multi-cell range; in this case they return an array with the size and shape of the first contiguous range of cells in the multi-cell range (i.e., the first area). So the following My Excel Toolbox formula is recommended for conditional formatting of static (constant) values:
=NOT(OR(ISFORMULA2(A1), ISBLANK(A1)))
See https://sites.google.com/view/MyExcelToolbox/
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