## Cell::SetSharedFormula(const U16String\&, int32_t, int32_t) method


Sets shared formulas to a range of cells.

```cpp
void Aspose::Cells::Cell::SetSharedFormula(const U16String &sharedFormula, int32_t rowNumber, int32_t columnNumber)
```


| Parameter | Type | Description |
| --- | --- | --- |
| sharedFormula | const U16String\& | Shared formula. |
| rowNumber | int32_t | Number of rows to populate the formula. |
| columnNumber | int32_t | Number of columns to populate the formula. |

## See Also

* Class [U16String](../../u16string/)
* Class [Cell](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## Cell::SetSharedFormula(const char16_t*, int32_t, int32_t) method


Sets shared formulas to a range of cells.

```cpp
void Aspose::Cells::Cell::SetSharedFormula(const char16_t *sharedFormula, int32_t rowNumber, int32_t columnNumber)
```


| Parameter | Type | Description |
| --- | --- | --- |
| sharedFormula | const char16_t* | Shared formula. |
| rowNumber | int32_t | Number of rows to populate the formula. |
| columnNumber | int32_t | Number of columns to populate the formula. |

## See Also

* Class [Cell](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## Cell::SetSharedFormula(const U16String\&, int32_t, int32_t, const FormulaParseOptions\&) method


Sets shared formulas to a range of cells.

```cpp
void Aspose::Cells::Cell::SetSharedFormula(const U16String &sharedFormula, int32_t rowNumber, int32_t columnNumber, const FormulaParseOptions &options)
```


| Parameter | Type | Description |
| --- | --- | --- |
| sharedFormula | const U16String\& | Shared formula. |
| rowNumber | int32_t | Number of rows to populate the formula. |
| columnNumber | int32_t | Number of columns to populate the formula. |
| options | const FormulaParseOptions\& | Options for parsing the formula. |

## See Also

* Class [U16String](../../u16string/)
* Class [FormulaParseOptions](../../formulaparseoptions/)
* Class [Cell](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## Cell::SetSharedFormula(const char16_t*, int32_t, int32_t, const FormulaParseOptions\&) method


Sets shared formulas to a range of cells.

```cpp
void Aspose::Cells::Cell::SetSharedFormula(const char16_t *sharedFormula, int32_t rowNumber, int32_t columnNumber, const FormulaParseOptions &options)
```


| Parameter | Type | Description |
| --- | --- | --- |
| sharedFormula | const char16_t* | Shared formula. |
| rowNumber | int32_t | Number of rows to populate the formula. |
| columnNumber | int32_t | Number of columns to populate the formula. |
| options | const FormulaParseOptions\& | Options for parsing the formula. |

## See Also

* Class [FormulaParseOptions](../../formulaparseoptions/)
* Class [Cell](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## Cell::SetSharedFormula(const U16String\&, int32_t, int32_t, const FormulaParseOptions\&, const Vector \<Vector \<Aspose::Cells::Object\>\>\&) method


Sets shared formulas to a range of cells.

```cpp
void Aspose::Cells::Cell::SetSharedFormula(const U16String &sharedFormula, int32_t rowNumber, int32_t columnNumber, const FormulaParseOptions &options, const Vector<Vector<Aspose::Cells::Object>> &values)
```


| Parameter | Type | Description |
| --- | --- | --- |
| sharedFormula | const U16String\& | Shared formula. |
| rowNumber | int32_t | Number of rows to populate the formula. |
| columnNumber | int32_t | Number of columns to populate the formula. |
| options | const FormulaParseOptions\& | Options for parsing the formula. |
| values | const Vector \<Vector \<Aspose::Cells::Object\>\>\& | values for those cells with given shared formula |

## See Also

* Class [U16String](../../u16string/)
* Class [FormulaParseOptions](../../formulaparseoptions/)
* Class [Vector](../../vector/)
* Class [Object](../../object/)
* Class [Cell](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## Cell::SetSharedFormula(const char16_t*, int32_t, int32_t, const FormulaParseOptions\&, const Vector \<Vector \<Aspose::Cells::Object\>\>\&) method


Sets shared formulas to a range of cells.

```cpp
void Aspose::Cells::Cell::SetSharedFormula(const char16_t *sharedFormula, int32_t rowNumber, int32_t columnNumber, const FormulaParseOptions &options, const Vector<Vector<Aspose::Cells::Object>> &values)
```


| Parameter | Type | Description |
| --- | --- | --- |
| sharedFormula | const char16_t* | Shared formula. |
| rowNumber | int32_t | Number of rows to populate the formula. |
| columnNumber | int32_t | Number of columns to populate the formula. |
| options | const FormulaParseOptions\& | Options for parsing the formula. |
| values | const Vector \<Vector \<Aspose::Cells::Object\>\>\& | values for those cells with given shared formula |

## See Also

* Class [FormulaParseOptions](../../formulaparseoptions/)
* Class [Vector](../../vector/)
* Class [Object](../../object/)
* Class [Cell](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
