How to Use the ISFORMULA Function in Google Sheets to Quickly Find Hardcoded Numbers

When you inherit a massive financial model or budget spreadsheet from a coworker, the biggest danger is hidden “hardcoded” numbers. A spreadsheet is supposed to be a dynamic calculator. If cell C5 is supposed to be “Revenue minus Expenses” (=A5-B5), but your coworker manually typed the number 500 into the cell because they were in a rush, the entire mathematical integrity of the spreadsheet is broken.

If you change the Revenue in A5, the Profit in C5 will not update, because it is no longer a formula. Finding these rogue, hardcoded numbers manually in a sheet with 10,000 cells is impossible.

Instead of clicking on every single cell to check the formula bar, you can use the incredibly powerful ISFORMULA function combined with Conditional Formatting. This will command Google Sheets to instantly highlight every single cell in bright red if someone committed the cardinal sin of typing a raw number over a mathematical equation.

Step 1: Highlight the Target Area

  1. Open your Google Sheet.
  2. Highlight the entire range of cells where formulas should be (e.g., Column C, or range C2:F1000).

Step 2: Create the Conditional Formatting Rule

  1. Look at the top menu bar and click Format > Conditional formatting.
  2. A sidebar will slide open on the right.
  3. Under the “Format rules” section, look for the Format cells if… dropdown menu.
  4. Click the dropdown, scroll all the way to the very bottom, and select Custom formula is.

Step 3: Inject the ISFORMULA Logic

You need to tell the engine to format the cell if it is not a formula.

  1. In the text box that appears below the dropdown, paste the following exact formula (assuming your highlighted range started at C2):
    =AND(NOT(ISBLANK(C2)), NOT(ISFORMULA(C2)))
  2. Under “Formatting style,” click the Paint Bucket icon and select a harsh, bright red color.
  3. Click Done.

Understanding the Mathematical Trap

  • ISFORMULA(C2): This checks if the cell contains a mathematical equation (starting with =).
  • NOT(ISFORMULA...): This reverses the logic. It triggers the red alarm if the cell is just raw text or a raw number.
  • NOT(ISBLANK...): This is critical. Without this, every single empty, blank cell in your spreadsheet would also turn red. The AND statement ensures the alarm only goes off if a cell actually has data in it, but that data isn’t a formula.

The Result

The instant you click Done, your spreadsheet will light up like a Christmas tree. Every single cell that should be a calculation, but was manually overwritten by a human being, will instantly turn bright red. You can now easily locate the broken links in the chain, delete the hardcoded numbers, and restore the mathematical integrity of the financial model.

RELATED POSTS

  • How to Use the UNIQUE Function in Google Sheets to Remove Duplicates
  • How to Protect Cells and Ranges in Google Sheets from Accidental Edits
  • How to Use the Google Sheets SPLIT Function to Separate Text
  • How to Use the Google Sheets COUNTIFS Function for Multiple Conditions
  • How to Use the Google Sheets SORTN Function to Find Top Performers
  • Get the best tech tips delivered straight to your inbox.

    Join thousands of readers mastering Apple, Google, Microsoft, and Linux.