How to Find Hardcoded Values in Excel
A hardcoded value is a number typed straight into a cell or, worse, buried inside a formula like =Rev*1.05. These plug numbers are easy to lose track of and a common source of model errors. Here is how to surface them in Excel and review them before they bite you.
Find constant cells with Go To Special
Go To Special can select every cell that holds a typed number rather than a formula. This catches standalone constants but not numbers embedded in formulas.
- Select the range you want to check, or press
Ctrl+Ato cover the whole sheet. - Press
F5to open Go To, then click Special. - Choose Constants, untick Text, Logicals, and Errors, and leave Numbers ticked.
- Click OK. Excel selects every cell holding a typed number, which you can then color or review.
Spot embedded numbers with Find & Replace
The trickier hardcodes hide inside formulas. To hunt for a specific suspect number, press Ctrl+H, type the value in Find what, set Look in to Formulas, and click Find All. This works when you know what you are looking for, but it cannot list every formula that contains some constant.
Make hardcodes visible with color
Many modeling teams adopt a convention where inputs are blue and formulas are black. After selecting constants with Go To Special, color them blue so a typed-over assumption stands out instantly the next time someone opens the file. This is a habit worth enforcing, but it only flags whole-cell constants, not the plug inside =A1*0.93.
List every formula with a hardcode using ModelMint
The gap in all the native methods is the number tucked inside a formula. ModelMint Find Hardcodes scans your selection or sheet and lists every formula that contains a hardcoded number, such as =Rev*1.05 or =Sales-25000, so you can review each plug in one place and decide whether it belongs in an input cell instead.
Find Hardcodes
Scan a selection or sheet and list every formula that contains a hardcoded number, so you can review the plug values buried in your logic.
Get ModelMint See how it worksFAQ
How do I select all hardcoded numbers in Excel?
Press F5, click Special, choose Constants, and tick only Numbers. Excel selects every cell containing a typed number. Note this finds standalone constants, not numbers embedded inside formulas.
Why are hardcoded values a problem in models?
A hardcoded number cannot be traced or updated like an input cell. When an assumption changes, embedded plugs are easy to miss, which leaves the model showing stale or inconsistent figures.
Can Go To Special find numbers inside formulas?
No. Go To Special Constants only finds cells that are typed values. A number inside a formula such as =A1*1.1 is part of a formula cell, so you need a tool that parses formula contents to surface it.