# WEIBULL Function

> Return the Weibull distribution with the WEIBULL compatibility function of TX Sheet Control: shape and scale, cumulative or density, #NUM! errors, an example.

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

---

Return the Weibull distribution, which is often used to model time to failure. WEIBULL is the compatibility version of [WEIBULL.DIST](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/weibull-dist/llms-full.txt) and returns the same result. `x` is the value, `alpha_or_lambda` the shape and `beta_or_cumulative` the scale parameter; `cumulative` TRUE returns the cumulative distribution function and FALSE the probability density. A negative `x` or a shape or scale of 0 or less returns `#NUM!`.

### Syntax

```text
WEIBULL(x, alpha_or_lambda, beta_or_cumulative, cumulative)
```

Category: Statistics. Minimum arguments: 4. Maximum arguments: 4.

Available for supported offline calculation.

### Examples

```text
=WEIBULL(1,2,1,TRUE)
```

The formula returns 0.6321205588, the probability of a value up to 1 with shape 2 and scale 1.

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:** [WEEKNUM Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/weeknum/llms-full.txt)
- **Next:** [WEIBULL.DIST Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/weibull-dist/llms-full.txt)
