Get help

Help center

Guides and answers

Contact support

Write to our team

Sign in to

Workflows

Build processes with your team

Automations

Connect files and automate tasks

One system, four parts

AI agents

Virtual Employees that work 24/7

Automations

Connect files and automate tasks

Workflows

Build processes with your team

Data Space

Trusted data sharing and control

Solutions by department

Finance

Reports, budgets, and reconciliations

Inventory and manufacturing

Stock, orders, and production in one view

HR

Timesheets, attendance, and reviews

Project management

Status and workload across projects

Sales and CRM

Leads and deals kept up to date

Education

Student records and school data

Finance

Turn manual finance work into reports that update themselves.

What Finance teams automate

  • Track payables and receivables
  • Build cash flow statements
  • Compare budget against actuals

Inventory and manufacturing

See stock levels and automate ordering.

What inventory and manufacturing teams automate

  • Track inventory across multiple sites
  • Connect sales, purchasing, and warehouse data
  • Link a barcode scanner to your sheet

HR

Run recruitment, attendance, and OKR tracking from your sheets.

What HR teams automate

  • Track recruitment and onboarding
  • Record team OKRs and results
  • Track check-ins, check-outs, and leave

Project management

Assign tasks and track hours without manual updates.

What project teams automate

  • Assign tasks and track status changes
  • Estimate effort and log hours worked
  • Track milestones across projects

Sales and CRM

Track leads and sales performance with automated reports.

What sales teams automate

  • Track and convert leads
  • Set sales goals and track team metrics
  • Monitor sales KPIs on dashboards

Education

Automate attendance, grades, and school purchasing.

What schools automate

  • Track attendance and notify parents
  • Record and compare class grades
  • Track inventory lent to students and staff

Find a use case

By department

How each team uses Sheetgo

By industry

How each industry uses Sheetgo

By company size

Small, medium-sized, or large

Learn

Blog

Guides and product news

Customer stories

How teams like yours use Sheetgo

Help center

Guides and answers

Why Sheetgo

Compare

How Sheetgo compares with other tools

Security

How we protect your data

Trust center

Our compliance details

Sign in to

Workflows

Build processes with your team

Automations

Connect files and automate tasks

One system, four parts

AI agents

Virtual Employees that work 24/7

Automations

Connect files and automate tasks

Workflows

Build processes with your team

Data Space

Trusted data sharing and control

Solutions by department

Finance

Reports, budgets, and reconciliations

Inventory and manufacturing

Stock, orders, and production in one view

HR

Timesheets, attendance, and reviews

Project management

Status and workload across projects

Sales and CRM

Leads and deals kept up to date

Education

Student records and school data

Find a use case

By department

How each team uses Sheetgo

By industry

How each industry uses Sheetgo

By company size

Small, medium-sized, or large

Get started

Templates

Ready-made workflows to start from

Learn

Blog

Guides and product news

Customer stories

How teams like yours use Sheetgo

Help center

Guides and answers

Why Sheetgo

Compare

How Sheetgo compares with other tools

Security

How we protect your data

Trust center

Our compliance details

Help center

Guides and answers

Contact support

Write to our team

Workflows

Build processes with your team

Automations

Connect files and automate tasks

How to find IQR in Google Sheets (interquartile range)

In descriptive statistics, there are some measures that can help you assess the spread of the values in your dataset. While the range measures the distance between the lowest and highest values, the interquartile range (IQR) indicates where most of the values lie in your dataset.

In this guide, you will learn what the interquartile range (IQR) means, what it says about the spread of the majority of your values, and how to find it for odd and even sets of numbers. You will learn how to find the interquartile range manually and using Google Sheets.

What is the interquartile range (IQR)?

The interquartile range (IQR) refers to the middle 50% of the values in your dataset. Once a dataset has been ordered and divided into four equal quarters, the interquartile range focuses on the middle quartiles – second and third – while ignoring the top and bottom quartiles.

How to find the interquartile range?

To find the interquartile range of your dataset, you must first find the median for both the lower and upper half of your data. These correspond to the first (Q1) and third (Q3) quartiles. The interquartile range is found using the following formula:

IQR = Q3 – Q1

However, keep in mind that there are different methods available depending on whether you include the median value when finding Q1 and Q3: inclusive and exclusive.

  • For an even set of numbers, the method is always exclusive.
  • If you have an odd set of numbers, it’s up to you whether you include the median or not.

For the sake of clarity, all the odd-numbered examples below use the inclusive method, as this is also the method used to calculate quartiles in Google Sheets.

How to calculate the interquartile range manually?

Below, you have step-by-step instructions on how to find the interquartile range manually. First, for an odd set of numbers, then an even one.

The interquartile range for an odd set of numbers

Follow the instructions below to find the interquartile range of an odd set of numbers: 1,10,3,13,5,8,14.

1. Order your values in ascending order.

Ordered set: 1,3,5,8,10,13,14

2. The median or middle value in your set should have the same number of values above and below it. For this set, the median is 8.

1,3,5,(8),10,13,14

3. Now that you have the two halves of your dataset, you need to find Q1 and Q3. When using the inclusive method, you must include the median in both halves.

Lower half: 1,3,5,8

Q1 = (3+5)/2 = 4

Upper half: 8,10,13,14

Q3 = (10+13)/2 = 11.5

4. To get the interquartile range, subtract the value for Q1 from Q3. The IQR for this set is 7.5.

IQR = Q3 – Q1 = 11.5 – 4 = 7.5

The interquartile range for an even set of numbers

In the previous example, finding the median is very straightforward since there is an odd number of values in the set. However, what happens when it’s an even set? Follow the steps below to find the interquartile range of an even set of numbers: 1,16,3,13,8,10,14,5

1. As before, order your values in ascending order.

Ordered set: 1,3,5,8,10,13,14,16

2. Since the set has an even number of values, there are two middle values instead of one. To find the median, take the mean of these two middle values: 8 and 10.

1,3,5,8,10,13,14,16

Median = (8+10)/2 = 9

3. However, you can split the values into the lower and upper halves without calculating the median since you need the values for the median of each half. To get Q1 and Q3, find the median for the lower and upper halves.

Lower half: 1,3,5,8

Q1 = (3+5)/2 = 4

Upper half: 10,13,14,16

Q3 = (13+14)/2 = 13.5

4. Calculate the IQR by subtracting Q1 from Q3.

IQR = 13.5 – 4 = 9.5

How to find IQR in Google Sheets?

Now that you know how to find the interquartile range, let’s see how much quicker it is to do it in Google Sheets. For comparability, let’s use the same sets as in the examples worked out manually. There are two Google Sheets functions you can use to find Q1 and Q3: QUARTILE and MEDIAN.

How to find quartiles in Google Sheets with QUARTILE

This first example uses the QUARTILE function, which uses the inclusive method to calculate the quartiles. Quartile 1 matches the 25th percentile and quartile 3 the 75th, so the PERCENTILE formula in Google Sheets gives the same results with 0.25 and 0.75.

1. Open Google Sheets to the spreadsheet containing your ordered dataset. QUARTILE works on unsorted data too, but an ordered list makes the results easier to check. The SORT formula can put your values in order.

How to find IQR in Google Sheets — odd set of values 1 to 14 selected in cells A2:A8

2. In an empty cell, type in the QUARTILE function.

QUARTILE function in Google Sheets — =QUARTILE( typed in D2 next to the Q1 label, with the formula help box open

3. For the first parameter, select the cells containing the values.

QUARTILE in Google Sheets — =QUARTILE(A2:A8 with the odd set of values highlighted

4. The second parameter specifies the number of the quartile you want to find. In this case, you want Q1, so type “1”.

Find Q1 in Google Sheets — =QUARTILE(A2:A8,1) in cell D2

5. In another empty cell, type the QUARTILE function and select the values. This time, use “3” as the second parameter to get Q3.

Find Q3 in Google Sheets — =QUARTILE(A2:A8,3) in cell D3, with Q1 showing 4

6. To get the IQR, subtract Q1 from Q3. The IQR for this set is 7.5.

IQR in Google Sheets — =D3-D2 returns an IQR of 7.5 for the odd set

How to find quartiles in Google Sheets with MEDIAN

This second example uses the MEDIAN function, which is closer to the manual method. Remember that the results will vary depending on the method used.

1. Open Google Sheets to the sheet with the even set of values.

IQR in Google Sheets — even set of values 1 to 16 in column F next to the odd set results

2. In an empty cell, type in the MEDIAN function and select the lower half of your values to get Q1. Press ‘Enter’ to get the result.

IQR in Google Sheets — =MEDIAN(F2:F5) on the lower half of the even set for Q1

3. In another empty cell, type in the MEDIAN function again, but this time, select the upper half of your values to get Q3.

IQR in Google Sheets — =MEDIAN(F6:F9) on the upper half of the even set for Q3, with Q1 showing 4

4. To get the IQR, subtract Q1 from Q3. The IQR for this set is 9.5.

IQR in Google Sheets — =I3-I2 returns an IQR of 9.5 for the even set

Is a higher interquartile range good?

The interquartile range (IQR) measures the spread of the middle half of your dataset. For this reason, the higher the IQR value, the more spread out the values in the middle half of your dataset. This allows you to assess the variability within the bulk of your dataset. Whether you consider the values to be good or bad will depend on the circumstances and the purpose of your analysis.

Because the IQR leaves out the top and bottom quarters of your data, a few extreme values won’t change it much. To measure how far every value sits from the mean, use the STDEV formula in Google Sheets.

Conclusion

As you have seen, the interquartile range is a useful measure. Unlike the range, which illustrates the spread of your entire dataset, the interquartile range shows the spread of the middle half of your dataset. The IQR allows you to assess how much variability is present in the bulk of your dataset.

You now know what the interquartile range is and what it can tell you about the variability in the middle half of your dataset. In addition to knowing how to do this manually for even and odd sets of numbers, you also know how to find the interquartile range using two different functions in Google Sheets: QUARTILE and MEDIAN.

For the range of the whole dataset, use the MAX formula in Google Sheets to find the highest value and the MIN formula to find the lowest, then subtract one from the other.

You may also like…

google sheets features and formulas

Top 5 dynamic array formulas in Google Sheets 

Google Sheets has evolved beyond basic spreadsheets. With the introduction of dynamic array formulas, users can now manipulate and analyze...
google sheets features and formulas

Mastering the FILTER Formula: 4 Use Cases with Examples

The FILTER formula in Google Sheets is a versatile tool for extracting data that meets specific conditions. Unlike the QUERY formula,...
google sheets features and formulas

Unlocking the Power of SUMIF and SUMIFS in Google Sheets: 4 real-life use cases

The SUMIF and SUMIFS formulas in Google Sheets are indispensable tools for performing conditional summations. They simplify complex...