The QUARTILE function in Excel is a powerful tool used for statistical analysis. It calculates and returns the quartile of a given data set, providing insights into the distribution of the data by splitting it into four equal parts. This function is particularly useful in data analysis for identifying trends and making informed decisions based on statistical information.
Syntax
QUARTILE(array, quart)- array: This parameter is the range of cells that contains the data set for which you want to find the quartile.
- quart: This specifies which quartile to return, where 0 is the minimum value, 1 is the first quartile, 2 is the median, 3 is the third quartile, and 4 is the maximum value.
Example #1
=QUARTILE(A1:A10, 1)
This function returns the first quartile (Q1) of the data values in the range A1 to A10. For a data set of 10 values {2, 3, 5, 7, 8, 10, 11, 12, 15, 18}, the result would be 6.5.
Example #2
=QUARTILE(B1:B20, 3)
This function calculates the third quartile (Q3) for the data set located in cells B1 through B20. Given values such as {4, 5, 7, 8, 12, 13, 15, 16, 18, 21, 22, 23, 25, 27, 29, 30, 32, 35, 37, 40}, the result would be 30.5.
Example #3
=QUARTILE(C1:C15, 2)
This function returns the median (Q2) of the dataset in the range C1 to C15. For example, if the values in this range are {1, 3, 4, 5, 6, 8, 9, 10, 12, 14, 15, 18, 20, 22, 25}, the result would be 10.
Error handling
- NUM! This error occurs if the quart parameter is less than 0 or greater than 4, which is outside the valid range for quartiles.
- VALUE! This error indicates that the array parameter contains non-numeric data, preventing the function from calculating the quartile.
- N/A This error occurs if the data set is empty, meaning that there are no values to analyze for determining the quartile.