XL.Sheet.CellIsFormula
----------------------

Checks that cell contains a formula.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [XL](component_XL.md) | [3.5](newinversion35.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "XL.Sheet.CellIsFormula"; BookRef; SheetIndex; Row; Column ) 

**MBS**( **"XL.Sheet.CellIsFormula";** /\* Checks that cell contains a formula. \*/  
**$BookRef**; /\* The reference number for the workbook.e.g. $ref \*/   
**$SheetIndex**; /\* The index of the sheet. This number ranges from 0 to [XL.Book.SheetCount](XLBookSheetCount.md)-1.e.g. 0 \*/   
**$Row**; /\* The row for the cell. First row has index 0. \*/   
**$Column**) /\* The column for the cell. First column has index 0. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| BookRef | The reference number for the workbook. | $ref |
| SheetIndex | The index of the sheet. This number ranges from 0 to [XL.Book.SheetCount](XLBookSheetCount.md)-1. | 0 |
| Row | The row for the cell. First row has index 0. | $row |
| Column | The column for the cell. First column has index 0. | $column |

### Result

Returns 1 if a formula cell, 0 if normal cell or error message.

### Description

Checks that cell contains a formula.  
See also [XL.Sheet.CellReadFormula](XLSheetCellReadFormula.md) and [XL.Sheet.CellWriteFormula](XLSheetCellWriteFormula.md).  
### Examples

Read whether cell has formula:

 Set Variable \[$b ; Value: MBS ( "XL.Sheet.CellIsFormula"; $bookRef ; $sheetIndex ; $Row ; $Column ) \]  
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Sheet.CellReadFormula](XLSheetCellReadFormula.md)
- [XL.Sheet.CellReadFormulas](XLSheetCellReadFormulas.md)
- [XL.Sheet.CellWriteFormula](XLSheetCellWriteFormula.md)
- [XL.Sheet.CellWriteFormulas](XLSheetCellWriteFormulas.md)

This function checks for a license.

Created 18th August 2014 , last changed 19th April 2020

  
[XL.Sheet.CellIsDate](XLSheetCellIsDate.md) - [XL.Sheet.CellIsStyledText](XLSheetCellIsStyledText.md)

[HTML Version](XLSheetCellIsFormula.shtml)