If you want to get the median of numbers within the first quartile, you have to use the QUARTILE, MEDIAN and IF functions together and then enter it as an array formula. Say your values are in the cells from E2 to E27.
=MEDIAN( IF( E2:E27<=QUARTILE( E2:E27,1 ), E2:E27 ) )
To enter it as an array formula, you must press Ctrl- Shift - Enter together. The formula will then appear with curly braces around it, indicating that it is an array function.
Chat with our AI personalities
lower quartile = 1/4(n+1) upper quartile = 3/4(n+1) where n is the number of the values. Obviously the values have to be ordered from the lower to the higher: the number you'll get is the position in this order. Let's say you get 4 for your lower quartile, it means that the 4th value is your lower quartile.
n+1/2
Arrange the data in increasing order and count the number of data points = N. Find the integer K = N/2 or (N+1)/2. The Kth number in the ordered set is the median. Now consider only the numbers from the smallest to the median and find the median of this subset. This is the lower quartile = Q1. Then consider only the numbers from the original median to the largest. Find the median of this subset. It is the upper quartile = Q3. Then IQR = Q3 - Q1
Find the difference between the values for quartile 3 and quartile 1.
Since you put this question in the Excel category, I will respond with an Excel formula. Assuming you put your numbers in cells A1 through A100, the formula would be:=SUM(A1:A100)/100