Hello -
I am currently using the new AVERAGEIF function in Excel 2011 (for Mac) with a dynamic range and it works perfectly. It is listed below:
=AVERAGEIF(INDIRECT(ADDRESS(ROW(A3),COLUMN(H3),4)&":"&ADDRESS(ROW(A3),MAX($2:$2)+7,4)),">*Saturday",INDIRECT(ADDRESS(ROW(A5),COLUMN(H5),4)&":"&ADDRESS(ROW(A5),MAX($2:$2)+7,4)))
I would now like to do precisely the same thing but with the MEDIAN function.
I realise that there is no "MEDIANIF" and have tried to create the same effect with an array formula but have not been able to make it work but I get a #VALUE! error. This is what I have tried:
{=MEDIAN(IF(INDIRECT(ADDRESS(ROW(A3),COLUMN(H3),4)&":"&ADDRESS(ROW(A3),MAX($2:$2)+7,4))>"Saturday",INDIRECT(ADDRESS(ROW(A5),COLUMN(H5),4)&":"&ADDRESS(ROW(A5),MAX($2:$2)+7,4))))}
The formula works if I replace the indirect ranges with normal cell references, but I need the dynamic range.
Can anyone help me with this?
Many thanks.
<textarea id="adlesse_unifier_magic_element_id" style="display:none;"></textarea>
I am currently using the new AVERAGEIF function in Excel 2011 (for Mac) with a dynamic range and it works perfectly. It is listed below:
=AVERAGEIF(INDIRECT(ADDRESS(ROW(A3),COLUMN(H3),4)&":"&ADDRESS(ROW(A3),MAX($2:$2)+7,4)),">*Saturday",INDIRECT(ADDRESS(ROW(A5),COLUMN(H5),4)&":"&ADDRESS(ROW(A5),MAX($2:$2)+7,4)))
I would now like to do precisely the same thing but with the MEDIAN function.
I realise that there is no "MEDIANIF" and have tried to create the same effect with an array formula but have not been able to make it work but I get a #VALUE! error. This is what I have tried:
{=MEDIAN(IF(INDIRECT(ADDRESS(ROW(A3),COLUMN(H3),4)&":"&ADDRESS(ROW(A3),MAX($2:$2)+7,4))>"Saturday",INDIRECT(ADDRESS(ROW(A5),COLUMN(H5),4)&":"&ADDRESS(ROW(A5),MAX($2:$2)+7,4))))}
The formula works if I replace the indirect ranges with normal cell references, but I need the dynamic range.
Can anyone help me with this?
Many thanks.
<textarea id="adlesse_unifier_magic_element_id" style="display:none;"></textarea>