The Interquartile Range (IQR) is a statistical measure that calculates the difference between the 75th percentile (Q3) and the 25th percentile (Q1) of a dataset. It is a useful metric for understanding the spread of data and identifying outliers. Microsoft Excel provides several ways to calculate IQR, and in this article, we will explore five methods.

Method 1: Using the QUARTILE Function
The QUARTILE function in Excel is a built-in function that calculates the specified quartile of a dataset. To calculate IQR using this function, follow these steps:
- Select the cell where you want to display the IQR.
- Type
=QUARTILE(range, 3) - QUARTILE(range, 1)
, where "range" is the range of cells containing the data. - Press Enter to calculate the IQR.
For example, if your data is in cells A1:A10, the formula would be =QUARTILE(A1:A10, 3) - QUARTILE(A1:A10, 1)
.

Method 2: Using the PERCENTILE Function
The PERCENTILE function in Excel calculates the specified percentile of a dataset. To calculate IQR using this function, follow these steps:
- Select the cell where you want to display the IQR.
- Type
=PERCENTILE(range, 0.75) - PERCENTILE(range, 0.25)
, where "range" is the range of cells containing the data. - Press Enter to calculate the IQR.
For example, if your data is in cells A1:A10, the formula would be =PERCENTILE(A1:A10, 0.75) - PERCENTILE(A1:A10, 0.25)
.

Method 3: Using the QUARTILE.EXC Function
The QUARTILE.EXC function in Excel is a newer version of the QUARTILE function that excludes the median when calculating the quartiles. To calculate IQR using this function, follow these steps:
- Select the cell where you want to display the IQR.
- Type
=QUARTILE.EXC(range, 3) - QUARTILE.EXC(range, 1)
, where "range" is the range of cells containing the data. - Press Enter to calculate the IQR.
For example, if your data is in cells A1:A10, the formula would be =QUARTILE.EXC(A1:A10, 3) - QUARTILE.EXC(A1:A10, 1)
.

Method 4: Using the PERCENTILE.EXC Function
The PERCENTILE.EXC function in Excel is a newer version of the PERCENTILE function that excludes the median when calculating the percentiles. To calculate IQR using this function, follow these steps:
- Select the cell where you want to display the IQR.
- Type
=PERCENTILE.EXC(range, 0.75) - PERCENTILE.EXC(range, 0.25)
, where "range" is the range of cells containing the data. - Press Enter to calculate the IQR.
For example, if your data is in cells A1:A10, the formula would be =PERCENTILE.EXC(A1:A10, 0.75) - PERCENTILE.EXC(A1:A10, 0.25)
.

Method 5: Using a Formula with the LARGE and SMALL Functions
This method uses the LARGE and SMALL functions to calculate the 75th and 25th percentiles, respectively. To calculate IQR using this method, follow these steps:
- Select the cell where you want to display the IQR.
- Type
=LARGE(range, 1 + (0.75 * (COUNT(range) - 1))) - SMALL(range, 1 + (0.25 * (COUNT(range) - 1)))
, where "range" is the range of cells containing the data. - Press Enter to calculate the IQR.
For example, if your data is in cells A1:A10, the formula would be =LARGE(A1:A10, 1 + (0.75 * (COUNT(A1:A10) - 1))) - SMALL(A1:A10, 1 + (0.25 * (COUNT(A1:A10) - 1)))
.

Gallery of Interquartile Range in Excel
Interquartile Range Image Gallery









We hope this article has helped you learn five different methods to calculate the Interquartile Range (IQR) in Excel. Whether you use the QUARTILE function, PERCENTILE function, or a formula with the LARGE and SMALL functions, you can easily calculate the IQR of your dataset. If you have any questions or need further assistance, please don't hesitate to ask.