writeFormula

abstract fun writeFormula(col: Int, formula: String, style: ExcelStyle? = null)

Write a formula to a specific cell in the current row.

Must be invoked between {@link #startRow(Int, Double?)} and {@link #finishRow()}.

Parameters

col

the zero-based column index

formula

the formula to write (e.g., "SUM(A1:B1)")

style

the optional style to apply to the cell