---
title: "workbook.statistics: Workbook Statistics — Sheet kit command — Kition"
description: "Answers counts for the active sheet and workbook: cells with data, formulas, sheets, tables, charts, comments and the last used cell."
canonical: "https://developer.kition.ai/docs/kits/sheet/commands/workbook.statistics"
---

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

# workbook.statistics

**Workbook Statistics.** Answers counts for the active sheet and workbook: cells with data, formulas, sheets, tables, charts, comments and the last used cell.

- 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

None.

## Call through sheet_run

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

The required parameters, with placeholders for their types: not a tested example. sheet_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `sheet` | `object` | no |  |
| `workbook` | `object` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "sheet": {
      "additionalProperties": true,
      "properties": {
        "cellsWithData": {
          "type": "number"
        },
        "charts": {
          "type": "number"
        },
        "comments": {
          "type": "number"
        },
        "endOfSheet": {
          "type": "string"
        },
        "formulas": {
          "type": "number"
        },
        "name": {
          "type": "string"
        },
        "tables": {
          "type": "number"
        }
      },
      "type": "object"
    },
    "workbook": {
      "additionalProperties": true,
      "properties": {
        "cellsWithData": {
          "type": "number"
        },
        "charts": {
          "type": "number"
        },
        "names": {
          "type": "number"
        },
        "sheets": {
          "type": "number"
        },
        "tables": {
          "type": "number"
        }
      },
      "type": "object"
    }
  },
  "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).
