I have a worksheet arranged as below:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Country[/TD]
[TD]Region[/TD]
[TD]Boolean 1[/TD]
[TD]Boolean 2[/TD]
[TD]Metric[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]UK[/TD]
[TD]Europe[/TD]
[TD]True[/TD]
[TD]False[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]UK[/TD]
[TD]Europe[/TD]
[TD]True[/TD]
[TD]False[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]USA[/TD]
[TD]Americas[/TD]
[TD]True[/TD]
[TD]True[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]UK[/TD]
[TD]Europe[/TD]
[TD]True[/TD]
[TD]False[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]USA[/TD]
[TD]Americas[/TD]
[TD]False[/TD]
[TD]True[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]USA[/TD]
[TD]Americas[/TD]
[TD]True[/TD]
[TD]True[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]USA[/TD]
[TD]Americas[/TD]
[TD]True[/TD]
[TD]False[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]UK[/TD]
[TD]Europe[/TD]
[TD]True[/TD]
[TD]False[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
The Country and Region fields are completed via an index(match()) from another sheet which contains a text list of cities, countries, regions, etc.
I am trying to use the following formula: ={median(if(B2:B9="Europe",E1:E9))} to return the European median, but for some reason it doesn't work.
When I Evaluate the formula it recognises the cells filled with "Europe" as TRUE, but it then doesn't end up calculating the median over the range.
I mention the boolean fields as I can successfully run median(if()) on them (i.e. return the median where both are true, for example).
I have checked that it is not a name conflict or that I haven't got any spaces etc. hidden somewhere, but can't think why it won't calculate the Median when I ask it to reference the text fields. Any ideas?
Thanks!
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Country[/TD]
[TD]Region[/TD]
[TD]Boolean 1[/TD]
[TD]Boolean 2[/TD]
[TD]Metric[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]UK[/TD]
[TD]Europe[/TD]
[TD]True[/TD]
[TD]False[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]UK[/TD]
[TD]Europe[/TD]
[TD]True[/TD]
[TD]False[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]USA[/TD]
[TD]Americas[/TD]
[TD]True[/TD]
[TD]True[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]UK[/TD]
[TD]Europe[/TD]
[TD]True[/TD]
[TD]False[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]USA[/TD]
[TD]Americas[/TD]
[TD]False[/TD]
[TD]True[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]USA[/TD]
[TD]Americas[/TD]
[TD]True[/TD]
[TD]True[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]USA[/TD]
[TD]Americas[/TD]
[TD]True[/TD]
[TD]False[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]UK[/TD]
[TD]Europe[/TD]
[TD]True[/TD]
[TD]False[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
The Country and Region fields are completed via an index(match()) from another sheet which contains a text list of cities, countries, regions, etc.
I am trying to use the following formula: ={median(if(B2:B9="Europe",E1:E9))} to return the European median, but for some reason it doesn't work.
When I Evaluate the formula it recognises the cells filled with "Europe" as TRUE, but it then doesn't end up calculating the median over the range.
I mention the boolean fields as I can successfully run median(if()) on them (i.e. return the median where both are true, for example).
I have checked that it is not a name conflict or that I haven't got any spaces etc. hidden somewhere, but can't think why it won't calculate the Median when I ask it to reference the text fields. Any ideas?
Thanks!