Hi all,
I want to calculate the median and interquartile range of cells containing same value in two other columns.
Kindly find attached the data file
Any help will be appreciated.
Thanks.
cdad
Hi all,
I want to calculate the median and interquartile range of cells containing same value in two other columns.
Kindly find attached the data file
Any help will be appreciated.
Thanks.
cdad
I don't know enough about statistics to do the 'Interquartile range' or 'Skew'.
MEDIAN I understand. See if this gets you started.
Array enter this in G3, fill down and across. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.Formula:
Please Login or Register to view this content.
Edit I'll attempt the 'Interquartile range'. I am not sure I have the concept though. Array enter this in M3, fill down and across.Formula:
Please Login or Register to view this content.
Last edited by FlameRetired; 01-05-2018 at 03:13 PM.
Dave
Hello Dave
My understanding is that the interquartile range is the difference between 3rd and 1st quartile, in which case the above works with {1,3} in place of {0,4}
You could also get the same result using an AGGREGATE function which doesn't require "array entry", i.e.
=IFERROR(SUM(AGGREGATE(17,6,$C$2:$C$31/($L3=$A$2:$A$31)/(M$2=$B$2:$B$31),{1,3})*{-1,1}),"")
Audere est facere
Thanks Dave, the interquartile formula works once I adjusted the 0,4 to 1,3 considering representing first and third quartile, you are a star!
Thanks to you too, daddylonlegs, you guys are awesome.
DDLL
Thank you for clarifying the concept.
cdad you are welcome. Thank you for the feedback and for marking your thread Solved.![]()
Hi, I tried to adapt the Dave median formula to calculate minimum values but it returned 0 for houses where samples were not collected. I did expect it to ignore the houses where samples were not collected when calculating minimum values. I deliberately do not want to use pivot tables.
I have re-attached the excel file here
Any help is appreciated.
Cheers.
cdad
You can add another condition to exclude blanks, i.e. this formula in G3
=IFERROR(IF(ISNUMBER(G$2),MIN(IF(($F3=$A$2:$A$31)*(G$2=$B$2:$B$31)*($C$2:$C$31<>""),$C$2:$C$31)),MIN(IF(($F3=$A$2:$A$31)*($C$2:$C$31<>""),$C$2:$C$31))),"")
confirmed with CTRL+SHIFT+ENTER and copied across and down
Daddy longlegs,
This feedback has been a great learning experience for me. I really appreciate your support. It works. I successfully modified it to calculate maximums by replacing the min with max.
However, I adjusted the formula to calculate the COUNTS using the formula below but it is not working.
=IFERROR(IF(ISNUMBER($X$2),COUNT(IF(($V5=$O:$O)*($X$2=$Q:$Q),$R:$R)),COUNT(IF($V5=$O:$O,$R:$R))),"")
=IFERROR(IF(ISNUMBER($X$2),COUNT(IF(($V5=$O:$O)*($X$2=$Q:$Q)*($R:$R<>""),$R:$R)),COUNT(IF(($V5=$O:$O)*($R:$R<>""),$R:$R))),"")
Can you, once again kindly assist please.
Thanks again.
cdad
cdad since the uploads don't include those ranges we really can't advise you on much beyond encouraging you not to reference whole columns. There are exceptions. This is not one of them. That formula is multiplying values over more than 1 million rows ... repeatedly. That makes Excel work too hard and will slow performance.
Try another upload, Show us to what ranges and values these formulas refer.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks