# sheetToFormulae

Source: /xlsx-format/api-reference/functions/sheettoformulae

Convert a worksheet to an array of formula strings.

Each entry has the format "CellRef=Value" (e.g. "A1=42", "B2='Hello").
For array formulas, the ref is the full range (e.g. "A1:C3={formula}").
String values are prefixed with a single quote; booleans become TRUE/FALSE.

```ts
sheetToFormulae(ws: WorkSheet, opts?: Sheet2FormulaeOpts): string[]
```

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| ` ws ` | [` WorkSheet `](</xlsx-format/api-reference/interfaces/worksheet/>) | Yes | The worksheet to extract formulas from |
| ` opts ` | [` Sheet2FormulaeOpts `](</xlsx-format/api-reference/types/sheet2formulaeopts/>) | No | Optional worksheet export budget |

## Returns

` string[] `

An array of "ref=value" strings representing every non-empty cell
