
## set_formula(self, formula, value) {#System.String-System.Object}

Set the formula and the value(calculated result) of the formula.



```python

def set_formula(self, formula, value):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| formula | System.String | The formula. |
| value | System.Object | The value(calculated result) of the formula. |


## set_formula(self, formula, options) {#System.String-aspose.cells.FormulaParseOptions}

Set the formula and the value(calculated result) of the formula.



```python

def set_formula(self, formula, options):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| formula | System.String | The formula. |
| options | aspose.cells.FormulaParseOptions | Options for parsing the formula. |


## set_formula(self, formula, options, value) {#System.String-aspose.cells.FormulaParseOptions-System.Object}

Set the formula and the value(calculated result) of the formula.



```python

def set_formula(self, formula, options, value):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| formula | System.String | The formula. |
| options | aspose.cells.FormulaParseOptions | Options for parsing the formula. |
| value | System.Object | The value(calculated result) of the formula. |


## set_formula(self, formula, is_r1c1, is_local, value) {#System.String-bool-bool-System.Object}

Set the formula and the value of the formula.



```python

def set_formula(self, formula, is_r1c1, is_local, value):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| formula | System.String | The formula. |
| is_r1c1 | bool | Whether the formula is R1C1 formula. |
| is_local | bool | Whether the formula is locale formatted. |
| value | System.Object | The value of the formula. |
### Remarks

NOTE: This class is now obsolete. Instead,
please use Cell.SetFormula(string,FormulaParseOptions,object).
This property will be removed 12 months later since December 2019.
Aspose apologizes for any inconvenience you may have experienced.


### See Also
* module [`aspose.cells`](../../)
* class [`Cell`](/cells/python-net/aspose.cells/cell)
