Quartile Function

T

tika528

I would like to use a formula to return which quartile the given data array
falls into- that is I would like to return 0,1,2,3,4. 0= min, 1=25%, 2=50%,
etc.

The quartile function only returns the value of the various quartiles, while
I need to know within which quartile the value falls.

Any help is appreciated.
 
R

Ron Rosenfeld

I would like to use a formula to return which quartile the given data array
falls into- that is I would like to return 0,1,2,3,4. 0= min, 1=25%, 2=50%,
etc.

The quartile function only returns the value of the various quartiles, while
I need to know within which quartile the value falls.

Any help is appreciated.


Perhaps:

=FLOOR(A1,0.25)*4

will do what you describe?


--ron
 
J

Jerry W. Lewis

For a given observation in the data set,

=SUMPRODUCT(--(obs>QUARTILE(allData,{1,2,3,4})))+1

should do it.

Jerry
 
T

tika528

Hi Jerry, I tried this, but get a #name error- it seems to not recognize the
"obs" funciton. Actually, I don't get this one either. Is it a special
function from an add-in?

Thanks for your help.
 
J

Jerry W. Lewis

"obs" is not a function, it is a place holder for your observation, just
as "allData" is a place holder for the endire data set. Replace the
place holders with appropriate cell references, range names, or constants.

Jerry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top