> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reducto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Types: editor: Formulas and names

## `AutoSumFn`

Import from `@reductoai/xlsx/editor`.

```ts theme={null}
type AutoSumFn = "SUM" | "AVERAGE" | "COUNT" | "MAX" | "MIN"
```

## `CreateNamesFrom`

Import from `@reductoai/xlsx/editor`.

| Name | Type | Description |
| - | - | - |
| `bottom` | `boolean` | |
| `left` | `boolean` | |
| `right` | `boolean` | |
| `top` | `boolean` | |

## `FormulaBarTarget`

What the formula bar edits instead of a cell: a chart title, as in Excel.

Import from `@reductoai/xlsx/view`.

| Name | Type | Description |
| - | - | - |
| `text` | `string` | |
| `commit()` | `(value: string) => void` | |

## `FunctionCall`

The name of a function call, its arguments and where the call ends.

Import from `@reductoai/xlsx/view`.

| Name | Type | Description |
| - | - | - |
| `args` | `string[]` | |
| `name` | `string` | |

## `NameRow`

One row of Excel's Name Manager.

Import from `@reductoai/xlsx/editor`.

| Name | Type | Description |
| - | - | - |
| `comment` | `string` | |
| `name` | `string` | |
| `refersTo` | `string` | |
| `scope` | `NameScope` | |
| `value` | `string` | |

## `NameScope`

A defined name's scope: null for the workbook, else the sheet's index.

Import from `@reductoai/xlsx/editor`.

```ts theme={null}
type NameScope = number | null
```

## `PreviewerEventName`

Import from `@reductoai/xlsx/view`.

```ts theme={null}
type PreviewerEventName = "selectionchange" | "sheetchange" | "zoomchange" | "layoutchange" | "pivotfilter" | "tablefilter" | "validationpick" | "drawingselect" | "edit" | "editrefused" | "contextmenu" | "errortag" | "insertfunction" | "pastename" | "namebox"
```

## `ScenarioInfo`

One scenario as Scenario Manager lists it.

Import from `@reductoai/xlsx/editor`.

| Name | Type | Description |
| - | - | - |
| `changing` | `string` | `$B$1,$B$2` |
| `comment` | `string` | |
| `hidden` | `boolean` | |
| `locked` | `boolean` | |
| `name` | `string` | |
| `values` | `string[]` | |

## `ScenarioList`

Import from `@reductoai/xlsx/editor`.

| Name | Type | Description |
| - | - | - |
| `items` | `ScenarioInfo[]` | |
| `result` | `string` | |
| `shown` | `string \| null` | |
