# AVERAGEIF

The **AVERAGEIF** function returns the average of values in a list that meet a specified condition.

### Syntax

```javascript
AVERAGEIF( list, condition)
```

### Arguments

* *list*: The list of values to evaluate.
* *condition*: The condition used to filter the values.

### Return value

Returns the average of the values that satisfy the given condition.

### Example

```javascript
AVERAGEIF([Sales,Sales1,Sales2],">0.1m")
```

Returns the average of *Sales*, *Sales1*, and *Sales2* column values when they are greater than *0.1 million.*

<figure><img src="/files/USN3sJpdUtllflCneFXR" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fabricplan.com/planning-sheets/formula-syntax/conditional-statements/if.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
