# QUARTILEEXC

The **QUARTILEEXC** function divides a dataset into four equal parts and returns a value based on the specified quartile. It uses the exclusive method, meaning the minimum and maximum values are excluded from the calculation, helping you understand how data is distributed across ranges.

### Syntax

```javascript
QUARTILEEXC(array, quart)
```

### Arguments

The **QUARTILEINC** function syntax has the following arguments:

* array - The range or list of numeric values. Required.
* quart - The quartile value to return: (Required)
  * 1 - First Quartile (Q1) – 25th percentile
  * 2 - Second Quartile (Q2) – Median (50th percentile)
  * 3 - Third Quartile (Q3) – 75th percentile

{% hint style="info" %}
Unlike [QUARTILEINC](/planning-sheets/formula-syntax/statistical-functions/quartileinc.md), 0 (Minimum) and 4 (Maximum) are not valid inputs in the exclusive method.
{% endhint %}

### Example

<pre class="language-javascript"><code class="lang-javascript"><strong>QUARTILEEXC(10,20,30,40,50,60,70,80, 1)
</strong>// Returns 22.5
<strong>QUARTILEEXC(10,20,30,40,50,60,70,80, 2)
</strong>// Returns 45
<strong>QUARTILEEXC(10,20,30,40,50,60,70,80, 3)
</strong>// Returns 67.5
</code></pre>

You can use the **QUARTILEEXC** function to analyze the distribution of a dataset by dividing values into four equal parts for metrics such as sales, revenue, or performance scores.

<figure><img src="/files/HwD3D4kQ4QEtFGqrMehJ" alt=""><figcaption><p>QUARTILEEXC function</p></figcaption></figure>

{% hint style="info" %}
We can also use the [**SELECT**](/planning-sheets/formula-syntax/measure-column-selection-functions/select.md) function to select a range of columns from 1 to 4 for the 'Revenue' measure (2022 Revenue - 2025 Revenue).

<pre><code><strong>QUARTILEEXC(SELECT([Revenue], 1, 4), 3)
</strong></code></pre>

{% endhint %}

### Excel Equivalent

[QUARTILEEXC](https://support.microsoft.com/en-us/office/quartile-exc-function-5a355b7a-840b-4a01-b0f1-f538c2864cad)

### FAQs

**Q1. What do quartiles represent?**

* Q1 (First Quartile): 25% of the values fall below this value.
* Q2 (Second Quartile): 50% of the values fall below this value (Median).
* Q3 (Third Quartile): 75% of the values fall below this value.


---

# 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/statistical-functions/quartileexc.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.
