---
title: "edit.find: Find — Sheet kit command — Kition"
description: "Finds cells whose formulas or values contain (or equal) a text and answers their addresses; nothing is changed. Use all to list every match."
canonical: "https://developer.kition.ai/docs/kits/sheet/commands/edit.find"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/sheet/commands/edit.find](https://developer.kition.ai/docs/kits/sheet/commands/edit.find)

# edit.find

**Find.** Finds cells whose formulas or values contain (or equal) a text and answers their addresses; nothing is changed. Use all to list every match.

- Kit: Sheet 0.1.0 (.xlsx (and opens .xlsm, .xls, .xltx, .csv, .ods, .xlsb)); reference: [Sheet kit commands](https://developer.kition.ai/docs/kits/sheet.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `all` | `boolean` | no |  |
| `backward` | `boolean` | no | find the hit before the active cell (Find Previous), the last one past the start |
| `byColumns` | `boolean` | no |  |
| `lookIn` | `"formulas" \| "values"` | no |  |
| `matchCase` | `boolean` | no |  |
| `what` | `string` | no |  |
| `wholeCell` | `boolean` | no |  |
| `within` | `"sheet" \| "workbook"` | no |  |

## Call through sheet_run

```text
sheet_run {
  "path": "<file>.xlsx",
  "steps": [{ "command": "edit.find" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `all`, `backward`, `byColumns`, `lookIn`, `matchCase`, `what`, `wholeCell`, `within`. sheet_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `count` | `number` | no |  |
| `results` | `object[]` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "count": {
      "type": "number"
    },
    "results": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "cell": {
            "type": "string"
          },
          "sheet": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "all": {
      "type": "boolean"
    },
    "backward": {
      "description": "find the hit before the active cell (Find Previous), the last one past the start",
      "type": "boolean"
    },
    "byColumns": {
      "type": "boolean"
    },
    "lookIn": {
      "enum": [
        "formulas",
        "values"
      ],
      "type": "string"
    },
    "matchCase": {
      "type": "boolean"
    },
    "what": {
      "type": "string"
    },
    "wholeCell": {
      "type": "boolean"
    },
    "within": {
      "enum": [
        "sheet",
        "workbook"
      ],
      "type": "string"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/sheet-darwin-arm64@0.1.0 and the kit itself (sheet_commands through @kition/cli@0.1.1, built from KitionAI/kition-sheet@82f13b2).
