Google Sheets ISFORMULA Function: Usage and Examples
In this article
The ISFORMULA function in Google Sheets checks whether a specific cell contains a formula. It returns TRUE if the cell contains a formula and FALSE if the cell contains a static value, such as text, a number, or is empty. This is primarily used for auditing complex spreadsheets to ensure that calculated values remain formulas and haven't been accidentally overwritten by hard-coded data.
What You'll Need
- A Google account with access to Google Sheets.
- An existing spreadsheet containing a mix of data (static values and formulas) to test the function.
Step-by-Step
- Open your Google Sheet: Navigate to the spreadsheet where you want to identify which cells contain formulas.
- Select the target cell: Click on the cell where you want the TRUE or FALSE result to appear.
- Enter the function: Type
=ISFORMULA(into the cell. - Reference the cell to check: Click on the cell you want to analyze or type its coordinates (e.g.,
A1). The complete formula should look like=ISFORMULA(A1). - Press Enter: Google Sheets will now evaluate the referenced cell. If cell A1 contains a formula (like
=SUM(B1:B10)), the result will be TRUE. If it contains a plain number or text, the result will be FALSE. - Apply to a range: To check an entire column or row, click the small blue square (fill handle) at the bottom-right corner of the cell containing your ISFORMULA function and drag it across the desired range.
Common Mistakes
- Checking the cell itself: Do not reference the cell that the ISFORMULA function is currently inside. For example, putting
=ISFORMULA(A1)inside cell A1 will create a circular dependency error. - Confusing values with formulas: Remember that ISFORMULA only detects the presence of a formula. It does not tell you if the formula is correct or if it is returning an error; it only confirms that the cell starts with an equals sign (=).
- Expecting it to find "Hidden" formulas: If a cell is formatted to hide its contents or if the formula is part of an ArrayFormula in a different cell, ISFORMULA will return FALSE for the cells that are merely displaying the output of that ArrayFormula.
Tips
- Combine with Conditional Formatting: Instead of creating a separate column of TRUE/FALSE values, use ISFORMULA in Conditional Formatting to highlight all formula cells in a specific color. Go to Format > Conditional formatting > Format cells if... > Custom formula is, and enter
=ISFORMULA(A1)(replacing A1 with the top-left cell of your range). - Audit Data Entry: Use this function to create a "Safety Check" sheet. If a column is supposed to be 100% calculated, you can use a helper column with ISFORMULA to quickly spot any cells where a user accidentally typed a number over a formula.
- Pair with IF: To make the output more readable than TRUE/FALSE, wrap it in an IF statement. For example:
=IF(ISFORMULA(A1), "Calculated", "Manual Entry").
Troubleshooting
If the function is not behaving as expected, try these steps:
- Check for leading spaces: If a cell looks like a formula but ISFORMULA returns FALSE, check if there is a space before the equals sign (e.g., " =SUM(A1:A2)"). Google Sheets treats cells starting with a space as text, not formulas.
- Verify ArrayFormulas: If you are using
ARRAYFORMULA, only the cell containing the actual formula returns TRUE. The cells below it that are filled automatically by the array will return FALSE because they do not contain individual formulas. - Check for Apostrophes: If a cell begins with an apostrophe ('), Google Sheets treats the rest of the cell as a string. Even if it looks like
'=SUM(A1:A2), ISFORMULA will return FALSE.
Frequently Asked Questions
Does ISFORMULA detect errors like #REF! or #VALUE!?
Yes. If a cell contains a formula that results in an error, ISFORMULA still returns TRUE because a formula is present, regardless of whether that formula is working correctly.
Can ISFORMULA be used to find specific types of formulas?
No. ISFORMULA is a binary check; it only detects if any formula exists. It cannot distinguish between a SUM formula, a VLOOKUP formula, or a simple addition formula.
Will ISFORMULA work on cells that were imported from Excel?
Yes, as long as the formulas were successfully converted to Google Sheets formulas during the import process, ISFORMULA will detect them.
Can I use ISFORMULA across different tabs?
Yes. You can reference a cell on another sheet by including the sheet name, for example: =ISFORMULA(Sheet2!A1).
Does this function work on mobile devices?
Yes, the ISFORMULA function works on the Google Sheets app for both Android and iOS, though setting up conditional formatting is easier on the desktop version.