# QUARTILEINC

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

{% hint style="info" %}
**QUARTILE** is the legacy version of the **QUARTILEINC** function and works similarly. It can be used in place of QUARTILEINC for inclusive quartile calculations.
{% endhint %}

### Syntax

```javascript
QUARTILEINC(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)
  * 0 - Minimum value
  * 1 - First Quartile (Q1) – 25th percentile
  * 2 - Second Quartile (Q2) – Median (50th percentile)
  * 3 - Third Quartile (Q3) – 75th percentile
  * 4 - Maximum value

### Example

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

You can use the **QUARTILEINC** 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%2Fuq9ZkmACVEacjPVch2z5%2F2026-02-16_15h40_27.png?alt=media&#x26;token=d2051913-7abc-4a2a-b746-2428271eda04" alt=""><figcaption><p>QUARTILEINC 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

[QUARTILEINC](https://support.microsoft.com/en-us/office/quartile-inc-function-1bbacc80-5075-42f1-aed6-47d735c4819d)

### 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.
