Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Google Sheets QUARTILE.EXC Function Guide

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The QUARTILE.EXC function in Google Sheets returns the quartile value of a data set, specifically using the exclusive method. This means it excludes the median from the calculation of the first and third quartiles, which typically results in a wider spread between the quartiles compared to the inclusive method. To use it, you simply need a range of numeric data and a quartile number (1, 2, or 3) to tell Google Sheets which boundary you want to find.

What You'll Need

  • A Google account with access to Google Sheets.
  • A dataset containing numeric values (integers or decimals).
  • A basic understanding of how to select cell ranges in a spreadsheet.

Step-by-Step

  1. Prepare Your Data: Enter your numeric data into a single column or row. For example, if you are tracking monthly sales, list your sales figures in cells A2 through A20. Ensure there are no text strings or empty cells within the range if you want the most accurate calculation, although Google Sheets generally ignores non-numeric values within the range.
  2. Select the Target Cell: Click on the cell where you want the quartile result to appear. This is usually a cell adjacent to your data or in a summary table at the bottom of your sheet.
  3. Enter the Function Start: Type =QUARTILE.EXC( into the cell. This tells Google Sheets that you are starting a formula and specifically requesting the exclusive quartile calculation.
  4. Define the Data Range: While the cursor is still inside the parentheses, highlight the cells containing your data with your mouse, or type the range manually. For example, if your data is in column A from row 2 to 20, type A2:A20. Your formula should now look like =QUARTILE.EXC(A2:A20,.
  5. Insert the Quartile Number: After the comma, type the number of the quartile you wish to find. You have three options:
    • 1: Returns the first quartile (25th percentile). This is the value below which 25% of the data falls.
    • 2: Returns the second quartile (50th percentile), which is the median of the data set.
    • 3: Returns the third quartile (75th percentile). This is the value below which 75% of the data falls.
  6. Close and Execute: Type the closing parenthesis ) and press Enter. For example, to find the first quartile of the range A2:A20, the final formula is =QUARTILE.EXC(A2:A20, 1).
  7. Verify the Result: The cell will now display a numeric value. If the exact quartile does not fall on a specific number in your dataset, Google Sheets will interpolate (calculate the value between two existing numbers) to provide the precise exclusive quartile.

Common Mistakes

One of the most frequent errors is using a quartile number outside the range of 1 to 3. Unlike the older QUARTILE function or the QUARTILE.INC function, QUARTILE.EXC does not support 0 (minimum) or 4 (maximum). If you enter 0 or 4 as the second argument, Google Sheets will return a #NUM! error. Always ensure your quartile argument is exactly 1, 2, or 3.

Another common mistake is including non-numeric data in the range. While the function is designed to ignore text, having a mix of data types can sometimes lead to confusion when auditing the formula. If your range includes headers (like the word "Sales" in cell A1), it is better to start your range at A2 to keep the data clean.

Users also frequently confuse QUARTILE.EXC with QUARTILE.INC. The "INC" stands for inclusive, and the "EXC" stands for exclusive. If you are following a specific statistical requirement for a research paper or a corporate financial report, using the wrong one will result in slightly different numbers. The exclusive version is often preferred in academic statistics because it provides a more accurate representation of the distribution's spread by not including the median in the sub-groups.

Tips

To make your spreadsheet more dynamic, instead of typing the number 1, 2, or 3 directly into the formula, you can reference another cell. For example, if you type the number "1" in cell B1, you can use the formula =QUARTILE.EXC(A2:A20, B1). This allows you to change the quartile you are viewing simply by changing the number in cell B1 without having to edit the formula itself.

If you need to find the Minimum and Maximum values to complement your quartiles, use the MIN() and MAX() functions. Since QUARTILE.EXC cannot provide these, a common layout is to have a small table with labels: Minimum (using =MIN(A2:A20)), Q1 (using =QUARTILE.EXC(A2:A20, 1)), Median (using =QUARTILE.EXC(A2:A20, 2)), Q3 (using =QUARTILE.EXC(A2:A20, 3)), and Maximum (using =MAX(A2:A20)).

For very large datasets, consider using Named Ranges. Go to Data > Named ranges and name your data set "SalesData". Your formula then becomes =QUARTILE.EXC(SalesData, 1), which is much easier to read and manage across multiple sheets.

Troubleshooting

If your formula returns a #NUM! error, check the second argument first. Ensure it is exactly 1, 2, or 3. If you have used 0 or 4, change them to the appropriate value or use the MIN or MAX functions. Additionally, QUARTILE.EXC requires a minimum number of data points to function. If your dataset is too small (e.g., only one or two values), the function may not be able to calculate an exclusive quartile and will trigger a #NUM! error. Ensure you have at least three data points for the function to work reliably.

If the result seems mathematically incorrect, double-check that your data range is correct. A common issue is accidentally including empty cells at the bottom of a column (e.g., selecting A2:A100 when you only have data up to A20). While Google Sheets ignores blanks, it is a best practice to select only the active data range to avoid calculation lags in massive sheets.

If the formula returns a #VALUE! error, it usually means there is something fundamentally wrong with the arguments. Check for typos in the function name or ensure that you haven't accidentally placed a text string where the quartile number should be. Ensure the comma separating the range and the quartile number is present.

Frequently Asked Questions

What is the difference between QUARTILE.EXC and QUARTILE.INC?

QUARTILE.INC (inclusive) includes the median when calculating the first and third quartiles, while QUARTILE.EXC (exclusive) excludes the median. This results in QUARTILE.EXC generally having a larger interquartile range.

Can I use QUARTILE.EXC for percentages other than 25%, 50%, and 75%?

No, QUARTILE.EXC is strictly for quartiles. If you need a different percentile (like the 10th or 90th), you should use the PERCENTILE.EXC function instead.

Why does my formula return #NUM! when I use 0?

The exclusive version of the quartile function is mathematically defined only for the 1st, 2nd, and 3rd quartiles. It cannot calculate the 0th (minimum) or 4th (maximum) quartile. Use =MIN() and =MAX() for those values.

Does the data need to be sorted for QUARTILE.EXC to work?

No, Google Sheets automatically handles the sorting of the data internally when performing the calculation. You can leave your data in any order and the result will be the same.

Will QUARTILE.EXC work with negative numbers?

Yes, the function works with any numeric values, including negative numbers and decimals. It treats them according to their value on a number line.

What happens if my data range contains errors like #DIV/0!?

If the range you select contains an error value, QUARTILE.EXC will return that same error. You must clean your data or use IFERROR within your data range to replace errors with blanks or zeros before running the quartile function.