How To Use Quartile Function Conditionally?

xlmaniac

Well-known Member
Joined
Jul 2, 2009
Messages
531
Office Version
  1. 2010
Platform
  1. Windows
Dear All,

I do have the following sample data set for 2 regions.

Based on the data points, I would like to calculate Quartile conditionally within the individual region.

The formula should check each & every data point within the region(East or North) and then assign Q1(Quartile 1), Q2(Quartile 2), Q3(Quartile 3 & Q4(Quartile 4) adjacent to the data points under Column:-C

Could somebody help me out with the formula under Column C which can populate the desired result? I am using Excel 2010 version.

Book1
ABC
1RegionValueQuartile
2East19,53,161
3East35,98,698
4East25,72,615
5East35,09,037
6East19,90,461
7East13,06,940
8East5,76,580
9East52,01,267
10East10,83,777
11East33,16,229
12East14,55,057
13East20,02,636
14North85,28,643
15North31,27,305
16North55,85,107
17North1,46,109
18North15,10,508
19North37,59,945
20North14,61,318
21North35,98,227
22North47,82,466
23North39,02,372
24North21,09,296
25North37,75,630
Sheet1
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Dear All,

I do have the following sample data set for 2 regions.

Based on the data points, I would like to calculate Quartile conditionally within the individual region.

The formula should check each & every data point within the region(East or North) and then assign Q1(Quartile 1), Q2(Quartile 2), Q3(Quartile 3 & Q4(Quartile 4) adjacent to the data points under Column:-C

Could somebody help me out with the formula under Column C which can populate the desired result? I am using Excel 2010 version.

Book1
ABC
1RegionValueQuartile
2East19,53,161
3East35,98,698
4East25,72,615
5East35,09,037
6East19,90,461
7East13,06,940
8East5,76,580
9East52,01,267
10East10,83,777
11East33,16,229
12East14,55,057
13East20,02,636
14North85,28,643
15North31,27,305
16North55,85,107
17North1,46,109
18North15,10,508
19North37,59,945
20North14,61,318
21North35,98,227
22North47,82,466
23North39,02,372
24North21,09,296
25North37,75,630
Sheet1
I am busy working on a broadly similar question so I believe one part of the solution you're looking for is the following formula, which will assist with giving you the relevant quartile based on two criteria:
=QUARTILE(IF(($A$2:$A$100=E2),IF(($B$2:$B$100=F2),$C$2:$C$100),""),1)
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,139
Members
453,021
Latest member
Justyna P

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