Counting the Occurence of each Quartile

moanuch

New Member
Joined
Dec 5, 2015
Messages
5
Hello All,

I hope I have a simple question.

I have a set of data like the following. I would like to know the formula on how to see how many times the value in Quartile 1, 2, & 3 occurred.

ValueQuartile 1
Quartile 1 Count

<tbody>
</tbody>
Quartile 2
Quartile 2 Count

<tbody>
</tbody>
Quartile 3
Quartile3 Count

<tbody>
</tbody>
1
1.25

<tbody>
</tbody>
2.54.75
1
2
2
3
3
10
15

<tbody>
</tbody>


<colgroup><col width="64" style="width:48pt"> </colgroup><tbody>
</tbody>
Any help would be greatly appeciated
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hi monauch,

I don't quite get your question.

perhaps you would like to provide more data and the expected outcome as well.

thanks

Regards,
wynn
 
Upvote 0
Hi monauch,

I don't quite get your question.

perhaps you would like to provide more data and the expected outcome as well.

thanks

Regards,
wynn

Column "Values" has the values I want getting quartiles 1-3 from. The piece I am missing is the count of values that were taken in consideration to make quarticles 1,2,3. I hope that helps
 
Upvote 0
If you just want a count of the values in each quartile look at the COUNTIFS & COUNTIF functions.
Also, shouldn't your 3rd quartile be 8.25?
Excel Workbook
ABCDEFG
1ValueQuartile 1Quartile 1 CountQuartile 2Quartile 2 CountQuartile 3Quartile3 Count
211.2522.524.752
31
42
52
63
73
810
915
Sheet
 
Upvote 0
If you just want a count of the values in each quartile look at the COUNTIFS & COUNTIF functions.
Also, shouldn't your 3rd quartile be 8.25?

*ABCDEFG
1ValueQuartile 1Quartile 1 CountQuartile 2Quartile 2 CountQuartile 3Quartile3 Count
211.2522.524.752
31******
42******
52******
63******
73******
810******
915******

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:64px;"><col style="width:70px;"><col style="width:69px;"><col style="width:74px;"><col style="width:77px;"><col style="width:73px;"><col style="width:89px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
C2=COUNTIF(A2:A9,"<"&B2)
E2=COUNTIFS(A2:A9,">="&B2,A2:A9,"<"&D2)
G2=COUNTIFS(A2:A9,">="&D2,A2:A9,"<"&F2)

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4


Great - now my only question is the count total is less than the total amount of values. In column A there are 8 values but the sum of counts in C, D, % G is only 6. What I am trying to find out is how many values make up each quartile.

Thanks for everything
 
Upvote 0
To get the count of the 4th quartile (based on the example above).
Code:
=COUNTIF(A2:A9,">"&F2)
 
Upvote 0
Hi All

Thank you for your help so and I would like your help with this. Here are some of the requirements needed.

The following is the data set in Sheet 1

  • I need to see how a student fairs at each residence in terms of quantity
  • I created a column Key to make a unique identifier
  • I created sheet 2 and removed duplicates see below to get the quartiles 1 through 3 see below

Sheet 1
*ABCD
1KeyStudent NumberResidenceQuantity
27101005651005657104
370810056510056570810
47261005651005657264
571210056510056571221
67001005651005657009
771310056510056571321
871110056510056571110
97151005651005657154
1072710056510056572711
1172410056510056572413
1270410056510056570420
1372210056510056572211
147181005651005657188
1572510056510056572521
1673010056510056573026
1772510056510056572524
187251005651005657258
1971410056510056571427
2071210056510056571228
217241005651005657245
2271510056510056571514
237221005651005657222
2470710056510056570729
257031005651005657035
2672310056510056572320
277101005651005657105
287041005651005657048
2970410056510056570421
3072310056510056572326
317111005651005657113
3271310056510056571324
337061005651005657061
347071005651005657078
3570810056510056570815
3671110056510056571120
3770010056510056570023
3870110056510056570130
397031005651005657039
4071810056510056571816
417121005651005657125
4271310056510056571321
4370010056510056570026
447171005651005657172
4572210056510056572225
4671210056510056571214
4770610056510056570625
487021005651005657026
497061005651005657067
5071310056510056571329
517251005651005657252
5271310056510056571315
5371110056510056571119
5470010056510056570020
5570110056510056570111
5671410056510056571420
5772210056510056572219
5871110056510056571117
597231005651005657238
6070510056510056570510
6170010056510056570024
6272410056510056572412
6371410056510056571424
647301005651005657303
657001005651005657007
6670810056510056570828
6770810056510056570814
6871710056510056571718
6971110056510056571118
707041005651005657046
717071005651005657072
7270410056510056570422
737131005651005657138
747231005651005657235
7572610056510056572625
7671310056510056571322
7770410056510056570413
7870610056510056570622
7971510056510056571525
8071010056510056571028
817231005651005657231
827051005651005657051
8371310056510056571330
8471210056510056571224
8570210056510056570216
8671710056510056571725
8772610056510056572611
887151005651005657157
897221005651005657229
9070110056510056570112
9171810056510056571822
927121005651005657121
9370810056510056570816
9471610056510056571626
957111005651005657119
9670210056510056570221
9771010056510056571021
987261005651005657264
9972510056510056572516
10070810056510056570828

<tbody>
</tbody>

Sheet 2

I created the 3 quartiles and hitting CTRL+SHIFT+ENTER
Code:
=QUARTILE.EXC(IF(Sheet1!$B$3:$B$101=Sheet2!B3,Sheet1!$E$3:$E$101),1)
=QUARTILE.EXC(IF(Sheet1!$B$3:$B$101=Sheet2!B3,Sheet1!$E$3:$E$101),2)
=QUARTILE.EXC(IF(Sheet1!$B$3:$B$101=Sheet2!B3,Sheet1!$E$3:$E$101),3)



What is needed to figure out columns E through H
  • E-G is the count of Quantity (Sheet 1 column D) that made quartile 1,2 and 3(Sheet 2 columns B-D respectively)
  • Column H (Max) would need to take the Maximum of columns E-H and return the corresponding B-C Max Quartile value.
  • Any help would be greatly appreciated.



*ABCDEFGH
1KeyQuartile 1Quartile 2Quartile 3Count of Quartile 1Count of Quartile 2Count of Quartile 3Max
27101005654.251326.25
37081005651315.528
472610056547.521.5
5712100565417.525
67001005658.521.524.5
771310056516.521.527.75
871110056591719
97151005654.7510.522.25
10727100565#NUM!11#NUM!
1172410056551213
127041005657.516.521.25
137221005655.51122
1471810056581622
1572510056551622.5
16730100565#NUM!14.5#NUM!
17714100565202427
187071005652829
19703100565#NUM!7#NUM!
207231005653823
217061005652.514.524.25
22701100565111230
2371710056521825
2470210056561621
25705100565#NUM!5.5#NUM!
26716100565#NUM!26#NUM!

<tbody>
</tbody>
 
Upvote 0
You didn't say what you wanted if the count was the same for each quartile, so the max formula below will return the the 3rd quartile value.
If there is only 1 value for the student it returns the 2nd quartile (median).
Excel Workbook
ABCDEFGH
1KeyQuartile 1Quartile 2Quartile 3Count of Quartile 1Count of Quartile 2Count of Quartile 3Max
27101005654.251326.2511126.25
37081005651315.52812328
472610056547.521.52014
5712100565417.52512217.5
67001005658.521.524.512221.5
771310056516.521.527.7522227.75
87111005659171922219
97151005654.7510.522.2511122.25
10727100565#NUM!11#NUM!00011
117241005655121311113
127041005657.516.521.2512216.5
137221005655.5112212111
147181005658162211122
1572510056551622.512116
16730100565#NUM!14.5#NUM!00014.5
1771410056520242711127
18707100565282911129
19703100565#NUM!7#NUM!0007
2072310056538231218
217061005652.514.524.2511124.25
2270110056511123011130
237171005652182511125
247021005656162111121
25705100565#NUM!5.5#NUM!0005.5
26716100565#NUM!26#NUM!00026
Sheet
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,603
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top