Do you often need to check the formulas in a worksheet? Rather than scan each cell individually, create a function that will mark the cells you need to check. Follow these steps:
- Open the worksheet containing those formulas and press Alt + F11
- Go to Insert | Module.
- Enter the following function (Figure A):
Function HF(range) As Boolean
HF = range.HasFormulaEnd Function
- Press Alt + Q.
- Go to Format | Conditional Formatting. In Excel 2007, click Conditional Formatting on the Home tab.
- Choose Formula Is from the Condition 1 drop-down list. In Excel 2007, click New Rule and then click Use A Formula To Determine Which Cells To Format.
- Enter the following formula:=HF(A1).
- Click the Format button.
- Click on the Patterns tab, select blue, and click OK. In Excel 2007, go to the Fill tab, choose blue under Background color (Figure B), and click OK.
- Click OK.
Now all cells containing formulas are highlighted in blue (Figure C).
Miss an Excel tip?
Check out the Microsoft Excel archive and catch up on other Excel tips.
Help users increase productivity by automatically signing up for TechRepublic’s free Microsoft Office Suite newsletter, featuring Word, Excel, and Access tips, delivered each Wednesday.