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.

Excel 2013 and later, including Microsoft 365 and Excel for the web. Also in Google Sheets.

Syntax =ISFORMULA(reference)

ISFORMULA
=ISFORMULA(B1)

Arguments

NameRequiredWhat to pass
referenceRequiredA 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

=ISFORMULA(B1)B2
Test
AB
1Amount12.48
2Has formulaTRUE
A picture of the sheet, not a live calculator. Type 12.48 into B1 with no formula and ISFORMULA becomes FALSE. The displayed number does not change.

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.