> For the complete documentation index, see [llms.txt](https://docs.tabula.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tabula.io/data-transformation/formulas/aggregate-functions/anyif.md).

# AnyIf

Selects an arbitrary element from the given column that matches the specified condition.

```mathematica
AnyIf(column, condition) → any_value
```

#### Inputs

* `column` - The column from which to select an arbitrary element.
* `condition` - The condition that the element must satisfy.

**Example**

```wolfram
AnyIf(column2, StartsWith(column2, "M")) → "Milk"
AnyIf(column1, column1 == "[1]") → "[1]"
```
