Using Quartile function on data with multiple conditions

Kevyn

New Member
Joined
Jul 10, 2008
Messages
1
I am trying to find the 25% (1st Quartile) on a set of data . However, I want to get the quartile base on ID (I have 51 different IDs) and a second category that is "0" or "1".

The problem I am having when using the quartile function is that I get the quartile for the entire range of data (6700 lines) and not just the quartile for the data that meets my conditions.

How do I set up conditions on teh quartile function so that it only returns the quartile for data that matches condition 1 adn condition 2. For example, I want the quartile for ID = 25 and condition 1 (Not the quartile for all of ID = 25 or all the data).

Thanks in advance
 
I filtered per centre and level and seems the quartile ranking is not consistent:

[TABLE="width: 447"]
<colgroup><col><col><col span="4"></colgroup><tbody>[TR]
[TD]Centre[/TD]
[TD]Band[/TD]
[TD]Total Deals[/TD]
[TD]Days Worked[/TD]
[TD]Deals/Day[/TD]
[TD]Quartile Rank[/TD]
[/TR]
[TR]
[TD]ESBCC[/TD]
[TD]7[/TD]
[TD]168[/TD]
[TD]20[/TD]
[TD]8.4[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]ESBCC[/TD]
[TD]7[/TD]
[TD]36[/TD]
[TD]20[/TD]
[TD]1.8[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]ESBCC[/TD]
[TD]7[/TD]
[TD]74[/TD]
[TD]20[/TD]
[TD]3.7[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]ESBCC[/TD]
[TD]7[/TD]
[TD]64[/TD]
[TD]12[/TD]
[TD]5.3[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]ESBCC[/TD]
[TD]7[/TD]
[TD]73[/TD]
[TD]12[/TD]
[TD]6.1[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]ESBCC[/TD]
[TD]7[/TD]
[TD]122[/TD]
[TD]20[/TD]
[TD]6.1[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]ESBCC[/TD]
[TD]7[/TD]
[TD]0[/TD]
[TD]20[/TD]
[TD]0.0[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]ESBCC[/TD]
[TD]7[/TD]
[TD]213[/TD]
[TD]10[/TD]
[TD]21.3[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]ESBCC[/TD]
[TD]7[/TD]
[TD]95[/TD]
[TD]20[/TD]
[TD]4.8[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]ESBCC[/TD]
[TD]7[/TD]
[TD]126[/TD]
[TD]20[/TD]
[TD]6.3[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]ESBCC[/TD]
[TD]7[/TD]
[TD]146[/TD]
[TD]20[/TD]
[TD]7.3[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]ESBCC[/TD]
[TD]7[/TD]
[TD]231[/TD]
[TD]20[/TD]
[TD]11.6[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]ESBCC[/TD]
[TD]7[/TD]
[TD]13[/TD]
[TD]0[/TD]
[TD]0.0[/TD]
[TD="align: right"]3
[/TD]
[/TR]
</tbody>[/TABLE]

11.6 and 6.1 are 2; and 1.8 and 6.3 are 1.
 
Upvote 0

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
I'm getting a different answer than what you show??
Excel Workbook
CDEFGHI
1CentreBandTotal DealsDays WorkedDeals/DayQuartile Rank
2ESBCC7168208.434
3ESBCC736201.811
4ESBCC774203.742
5ESBCC764125.342
6ESBCC773126.113
7ESBCC7122206.123
8ESBCC7020031
9ESBCC72131021.334
10ESBCC795204.812
11ESBCC7126206.313
12ESBCC7146207.343
13ESBCC72312011.624
14ESBCC7130031
Sheet
 
Upvote 0

Forum statistics

Threads
1,223,286
Messages
6,171,188
Members
452,390
Latest member
kemafa77

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