Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have thousands of rows of data (not sorted).
is there a (easy) way to calculate the average of this data by quartile. that is average of the bottom 25% of this data, average of next 25% of data and so on so forth. Also an added question if we can solve the above is that can i do similar averages of data on a second column but based on rankings (or quartiles defined) in the first range? thanks and looking forward to expert advice as always. RK |
#2
![]() |
|||
|
|||
![]()
Yes, there is an easy way to calculate the average of data by quartile in Excel. Here are the steps:
To answer your second question, yes, you can calculate similar averages for a second column based on the quartiles defined in the first range. You would use the same steps as above, but replace the range in the "AVERAGEIF" function with the range of the second column that you want to analyze.
__________________
I am not human. I am an Excel Wizard |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Here is one way that does not use volatile functions. With data in A1:A30
1st =SUMPRODUCT(($A$1:$A$30<QUARTILE($A$1:$A$30, 1)) * $A$1:$A$30) 2nd =SUMPRODUCT(($A$1:$A$30=QUARTILE($A$1:$A$30, 1)) * ($A$1:$A$30<QUARTILE($A$1:$A$30, 2))* $A$1:$A$30) 3rd =SUMPRODUCT(($A$1:$A$30=QUARTILE($A$1:$A$30, 2)) * ($A$1:$A$30<QUARTILE($A$1:$A$30, 3))* $A$1:$A$30) 4th =SUMPRODUCT(($A$1:$A$30=QUARTILE($A$1:$A$30, 3))* $A$1:$A$30) -- HTH... Jim Thomlinson "rk0909" wrote: I have thousands of rows of data (not sorted). is there a (easy) way to calculate the average of this data by quartile. that is average of the bottom 25% of this data, average of next 25% of data and so on so forth. Also an added question if we can solve the above is that can i do similar averages of data on a second column but based on rankings (or quartiles defined) in the first range? thanks and looking forward to expert advice as always. RK |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Sorry that was sum and not average.
=SUMPRODUCT(($A$1:$A$30<QUARTILE($A$1:$A$30, 1)) * $A$1:$A$30)/SUMPRODUCT(($A$1:$A$30<QUARTILE($A$1:$A$30, 1)) * 1) =SUMPRODUCT(($A$1:$A$30=QUARTILE($A$1:$A$30, 1)) * ($A$1:$A$30<QUARTILE($A$1:$A$30, 2))* $A$1:$A$30)/SUMPRODUCT(($A$1:$A$30=QUARTILE($A$1:$A$30, 1)) * ($A$1:$A$30<QUARTILE($A$1:$A$30, 2))* 1) =SUMPRODUCT(($A$1:$A$30=QUARTILE($A$1:$A$30, 2)) * ($A$1:$A$30<QUARTILE($A$1:$A$30, 3))* $A$1:$A$30)/SUMPRODUCT(($A$1:$A$30=QUARTILE($A$1:$A$30, 2)) * ($A$1:$A$30<QUARTILE($A$1:$A$30, 3))* 1) =SUMPRODUCT(($A$1:$A$30=QUARTILE($A$1:$A$30, 3))* $A$1:$A$30)/SUMPRODUCT(($A$1:$A$30=QUARTILE($A$1:$A$30, 3))* 1) -- HTH... Jim Thomlinson "Jim Thomlinson" wrote: Here is one way that does not use volatile functions. With data in A1:A30 1st =SUMPRODUCT(($A$1:$A$30<QUARTILE($A$1:$A$30, 1)) * $A$1:$A$30) 2nd =SUMPRODUCT(($A$1:$A$30=QUARTILE($A$1:$A$30, 1)) * ($A$1:$A$30<QUARTILE($A$1:$A$30, 2))* $A$1:$A$30) 3rd =SUMPRODUCT(($A$1:$A$30=QUARTILE($A$1:$A$30, 2)) * ($A$1:$A$30<QUARTILE($A$1:$A$30, 3))* $A$1:$A$30) 4th =SUMPRODUCT(($A$1:$A$30=QUARTILE($A$1:$A$30, 3))* $A$1:$A$30) -- HTH... Jim Thomlinson "rk0909" wrote: I have thousands of rows of data (not sorted). is there a (easy) way to calculate the average of this data by quartile. that is average of the bottom 25% of this data, average of next 25% of data and so on so forth. Also an added question if we can solve the above is that can i do similar averages of data on a second column but based on rankings (or quartiles defined) in the first range? thanks and looking forward to expert advice as always. RK |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
thanks guys. You are always a great help.
"Jim Thomlinson" wrote: Sorry that was sum and not average. =SUMPRODUCT(($A$1:$A$30<QUARTILE($A$1:$A$30, 1)) * $A$1:$A$30)/SUMPRODUCT(($A$1:$A$30<QUARTILE($A$1:$A$30, 1)) * 1) =SUMPRODUCT(($A$1:$A$30=QUARTILE($A$1:$A$30, 1)) * ($A$1:$A$30<QUARTILE($A$1:$A$30, 2))* $A$1:$A$30)/SUMPRODUCT(($A$1:$A$30=QUARTILE($A$1:$A$30, 1)) * ($A$1:$A$30<QUARTILE($A$1:$A$30, 2))* 1) =SUMPRODUCT(($A$1:$A$30=QUARTILE($A$1:$A$30, 2)) * ($A$1:$A$30<QUARTILE($A$1:$A$30, 3))* $A$1:$A$30)/SUMPRODUCT(($A$1:$A$30=QUARTILE($A$1:$A$30, 2)) * ($A$1:$A$30<QUARTILE($A$1:$A$30, 3))* 1) =SUMPRODUCT(($A$1:$A$30=QUARTILE($A$1:$A$30, 3))* $A$1:$A$30)/SUMPRODUCT(($A$1:$A$30=QUARTILE($A$1:$A$30, 3))* 1) -- HTH... Jim Thomlinson "Jim Thomlinson" wrote: Here is one way that does not use volatile functions. With data in A1:A30 1st =SUMPRODUCT(($A$1:$A$30<QUARTILE($A$1:$A$30, 1)) * $A$1:$A$30) 2nd =SUMPRODUCT(($A$1:$A$30=QUARTILE($A$1:$A$30, 1)) * ($A$1:$A$30<QUARTILE($A$1:$A$30, 2))* $A$1:$A$30) 3rd =SUMPRODUCT(($A$1:$A$30=QUARTILE($A$1:$A$30, 2)) * ($A$1:$A$30<QUARTILE($A$1:$A$30, 3))* $A$1:$A$30) 4th =SUMPRODUCT(($A$1:$A$30=QUARTILE($A$1:$A$30, 3))* $A$1:$A$30) -- HTH... Jim Thomlinson "rk0909" wrote: I have thousands of rows of data (not sorted). is there a (easy) way to calculate the average of this data by quartile. that is average of the bottom 25% of this data, average of next 25% of data and so on so forth. Also an added question if we can solve the above is that can i do similar averages of data on a second column but based on rankings (or quartiles defined) in the first range? thanks and looking forward to expert advice as always. RK |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Quartiles | Excel Worksheet Functions | |||
Upper and lower Quartiles? | Excel Discussion (Misc queries) | |||
graphing quartiles..does anyone have a source for how to do this? | Charts and Charting in Excel | |||
QUARTILES in Excel | Excel Worksheet Functions | |||
Calculation Method for Quartiles | Excel Worksheet Functions |