# CUBESETCOUNT Function

> Count the items of an OLAP cube set defined with CUBESET using the CUBESETCOUNT formula function of TX Sheet Control and the provider it requires.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > CUBESETCOUNT Function
- **263 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cubesetcount/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cubesetcount/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cubesetcount/llms-full.txt

---

Return the number of items in a set of an OLAP cube. `set` is the set, usually a reference to a cell with a [CUBESET](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cubeset/llms-full.txt) formula. The function requires host-provided data or an Excel-specific object: TX Sheet Control has no built-in cube connection, so the application supplies the data through a formula provider. Without a provider, the function returns `#N/A`.

### Syntax

```text
CUBESETCOUNT(set)
```

Category: Cube. Minimum arguments: 1. Maximum arguments: 1.

> Important
>
> **Application Data or Provider Required.** Configure the documented provider rather than expecting automatic network or Excel-service access.

### Examples

```text
=CUBESETCOUNT("[Set]")
```

Without a formula provider, the formula returns `#N/A`.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [CUBESET Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cubeset/llms-full.txt)
- **Next:** [CUBEVALUE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cubevalue/llms-full.txt)
