NanoXLSX Library Documentation
![]() | WorksheetAddCellFormula Method (String, Int32, Int32, Style) |
Adds a cell formula as string to the defined cell address
Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 1.2.3.0 (1.2.3)

C#
public void AddCellFormula( string formula, int columnAddress, int rowAddress, Style style )
Parameters
- formula
- Type: SystemString
Formula to insert - columnAddress
- Type: SystemInt32
Column number (zero based) - rowAddress
- Type: SystemInt32
Row number (zero based) - style
- Type: NanoXLSX.StyleStyle
Style to apply on the cell

Exception | Condition |
---|---|
StyleException | Throws an UndefinedStyleException if the active style cannot be referenced while creating the cell |
RangeException | Throws an RangeException if the passed cell address is out of range |
