Category: FUNCTION | Updated: 2026-11-22

How to Use the ISFORMULA Function in Google Sheets | Check Whether a Cell Contains a Formula

ISFORMULA Function

The ISFORMULA function checks whether the referenced cell contains a formula, returning TRUE if it contains a formula and FALSE if it is a plain number, text, or blank cell.

Syntax

=ISFORMULA(cell)
  • cell: Specifies the cell reference you want to check for a formula.

Practical Table Example

This example evaluates the input state of each cell using the ISFORMULA function.

Cell A (Actual Input) B (Cell Display) C (Formula) D (Result)
1 =SUM(10, 20) 30 =ISFORMULA(A1) TRUE
2 =10/0 #DIV/0! =ISFORMULA(A2) TRUE
3 30 30 (manually entered number) =ISFORMULA(A3) FALSE
4 '=SUM(10, 20) =SUM(10, 20) (text) =ISFORMULA(A4) FALSE
5 (Unentered) (Blank) =ISFORMULA(A5) FALSE

Common Errors and Precautions

  • Formulas stored as text return FALSE: If a formula is displayed as text by adding a leading apostrophe ('), it is not functioning as a formula and returns FALSE.
  • Behavior with range references: If you specify a multi-cell range (e.g., A1:A5), usually only the top-left cell of the range is evaluated. To check all rows, write ARRAYFORMULA(ISFORMULA(A1:A5)).

Frequently Asked Questions

Q. What happens in ISFORMULA if the formula result is an error (#N/A or #DIV/0!)?

A. TRUE is returned. Even if the calculation result is an error, as long as the cell itself contains a formula starting with '=', it is evaluated as TRUE.

Q. How can I find cells where a formula was accidentally overwritten with a manual entry?

A. Set '=NOT(ISFORMULA(A1))' as a custom formula in Conditional Formatting to automatically highlight cells where the formula was lost and replaced with a hardcoded number or text.