#1   Report Post  
tika528
 
Posts: n/a
Default Quartile Function

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.
  #2   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Tue, 15 Mar 2005 01:01:02 -0800, "tika528"
wrote:

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
  #3   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

For a given observation in the data set,

=SUMPRODUCT(--(obsQUARTILE(allData,{1,2,3,4})))+1

should do it.

Jerry

tika528 wrote:

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.


  #4   Report Post  
tika528
 
Posts: n/a
Default

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.

"Jerry W. Lewis" wrote:

For a given observation in the data set,

=SUMPRODUCT(--(obsQUARTILE(allData,{1,2,3,4})))+1

should do it.

Jerry

tika528 wrote:

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.



  #5   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

"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

tika528 wrote:

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.

"Jerry W. Lewis" wrote:


For a given observation in the data set,

=SUMPRODUCT(--(obsQUARTILE(allData,{1,2,3,4})))+1

should do it.

Jerry

tika528 wrote:


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.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
Trim function doesn't clean out ASCII Code 160 (Space) Ronald Dodge Excel Worksheet Functions 6 January 27th 05 03:48 AM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
I cant use englisch function names in a swedich version of excel PE Excel Discussion (Misc queries) 2 December 7th 04 01:00 AM


All times are GMT +1. The time now is 07:38 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"