Skip to content

Novis\Spreadsheet\Formula

An Excel formula for one cell, such as SUM(C2:C9). Make one with Formula::of. A string is always written as text. Only a Formula is written as a formula.

Members

2 members.

MemberSignature
constructorconstructor(tainted string $text, string|int|float|null $cached): void
ofof(string $text, ?{ cached?: string|int|float } $options = null): Formula

Properties

  • $formula->texttainted stringthe Excel text of the formula, with no = at the start. It is tainted, because Reader can read a formula from a file.
  • $formula->cachedstring|int|float|nullthe result the file has for a program that does not calculate, or null