Function · Information
Excel ISFORMULA function
The Excel ISFORMULA function returns TRUE when a cell contains a formula. A cell that shows 12.48 from =1.04*12 is TRUE. The same 12.48 typed in is FALSE.
Syntax =ISFORMULA(reference)
=ISFORMULA(B1)Arguments
| Name | Required | What to pass |
|---|---|---|
| reference | Required | A reference to one cell. The displayed value does not matter. The test is whether the cell holds a formula. |
Examples
Twelve dollars and forty-eight cents calculated, not typed
=ISFORMULA(B1)Result TRUE
| A | B | |
|---|---|---|
| 1 | Amount | 12.48 |
| 2 | Has formula | TRUE |
ISFORMULA looks at whether the cell contains a formula, not at what the formula returns. =1.04*12 displays 12.48 and ISFORMULA is TRUE. Type 12.48 into the cell and the display is the same and ISFORMULA is FALSE. A formula that returns text, or #N/A, is still a formula.
FORMULATEXT returns the formula itself. ISFORMULA only answers yes or no. Excel 2010 does not have it. A reference to another sheet works when that sheet is open, which it is if it is in the same workbook.