Question : Quartile Function in Excel - Worksheet Rearrangement Needed?

Hello,
I have data in a format like this below:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
VALUE	COUNT
0	206
13	1
17	1
21	1
24	1
25	2
29	1
30	2
35	1
36	1
39	2
40	2
41	3
45	2
46	3
47	1
51	7
53	3
54	77
55	1
56	2
57	1
58	1
63	1
65	4
67	1
73	2
77	4
82	2
86	15
88	3
90	1
91	1
98	1
99	1
100	2
106	29
108	3
... ...


Where VALUE = the  value of a data point, and COUNT = the number of times the value occurs. The total of COUNT = the number of observations / data points.  

How can I "set up" the data to use the quartile function?

Thanks,
Cheers,
JE
 
Attachments:
 
 

Answer : Quartile Function in Excel - Worksheet Rearrangement Needed?

I reopened the question because barryhoudini raised some good points.


To better understand what was going on, I created a small dataset with 19 rows of data taken from the sample. I changed two of the counts to smaller numbers. I then listed all the duplicate values as many times as required so the total data count was correct. I then tested the range containing duplicate values with the QUARTILE function. I compared that to barryhoudini's formula and to a modification of my approximate suggestion.

The equivalent of the following formula agreed with QUARTILE and barryhoudini's array formula:
=INDEX(A$2:A$19103,MATCH(C$19103*D2/4,C$2:C$19103,1)+1)            cell D2 is the desired quartile. This is one row below value previously suggested.

I found working with barryhoudini's formula (the one that didn't need an auxiliary column) made the worksheet extremely sluggish when working on the full database. This is because its use of OFFSET made it volatile, and therefore forced to recalculate after every change to an open workbook. So I replaced the formula with the values it returned. These agreed with the non-volatile formula above--which calculates very fast.

Brad
Random Solutions  
 
programming4us programming4us