# Set Range Formula

Assigns a formula to a cell range.


---

### :arrow_left:**INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `FilePath` | `String` | ✅Yes     | Excel file path |
| `Data`    | `Byte[]` | ✅Yes     | Excel file data (byte array) |
| `SheetName` | `String` | ❌No      | Target sheet name |
| `StartRow` | `Int32` | ❌No      | Start row number |
| `EndRow`  | `Int32` | ❌No      | End row number |
| `StartColumn` | `String` | ❌No      | Start column letter |
| `EndColumn` | `String` | ❌No      | End column letter |
| `Formula` | `String` | ❌No      | Formula to assign |


---

### :arrow_right:**OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `IsSetRangeFormulaSuccessful` | `Boolean` | Whether the operation succeeded |
| `SetRangeFormulaMessage` | `String` | Operation result message |
| `SetRangeFormulaResult` | `Byte[]` | Updated Excel file |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Throw exception on error |