# 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](https://docs.inforiver.com/formula-syntax/statistical-functions/quartileinc), 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="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FESQyeBnZ3TIqQXDOlP93%2F2026-02-25_09h56_59.png?alt=media&#x26;token=520426c8-c9be-4ee1-aa53-49ac76e66ff5" alt=""><figcaption><p>QUARTILEEXC function</p></figcaption></figure>

{% hint style="info" %}
We used the [**SELECT**](https://docs.inforiver.com/formula-syntax/measure-column-selection-functions/select) function to select a range of columns from 1 to 4 for the 'Revenue' measure (2022 Revenue - 2025 Revenue)
{% 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.
