Dividing a range into 4 equal parts

HuckFinn

New Member
Joined
Aug 1, 2006
Messages
45
I have a range of salary where I have a minimum ($39,500) and a maximum ($65,750) value. I would like to divide that range into four equal parts, where each quartile would have its own minimum and maximum value. The challenge I have is that I am basing my minimum and maximum value off of a midpoint ($52,600). The max of Q2 and the min of Q3 should be near the midpoint (if that makes sense).

Is there a way of doing this? Where I can maintain the midpoint value?
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
I have a range of salary where I have a minimum ($39,500) and a maximum ($65,750) value. I would like to divide that range into four equal parts, where each quartile would have its own minimum and maximum value. The challenge I have is that I am basing my minimum and maximum value off of a midpoint ($52,600). The max of Q2 and the min of Q3 should be near the midpoint (if that makes sense).

Is there a way of doing this? Where I can maintain the midpoint value?
I am not sure exactly what you mean by "midpoint"... you say the midpoint for the range is $52,600 whereas it is actually $52,625. Is there some adjustment you need for the difference or was your number just a guess?

Also, I am not sure what kind of output you want. Do you have numbers in cells and want the quartile those values fall in displayed in the cell next to them? Perhaps if you posted a sample of some numbers and the output you want from them, you desired result would be clearer to us.

Is a VBA solution acceptable or is this a formula only request?
 
Upvote 0
You mean like this?:


Excel 2013/2016
ABCDEF
1395006575039500-46062.546062.5-5262552625-59187.559187.5-65750
Sheet1
Cell Formulas
RangeFormula
C1=A1&"-"&((B1-A1)/4)+A1
D1=(((B1-A1)/4)+A1) & "-" & AVERAGE(A1,B1)
E1=AVERAGE(A1,B1) & "-" & (B1-(B1-A1)/4)
F1=(B1-(B1-A1)/4) & "-" & B1


If I understood what you wanted, max of Q2 and min of Q3 wouldn't be "near" the midpoint, it would be exactly the midpoint.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
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