is it possible to get the mode from a column of text ignoring blank cells and where the year equals x, i.e.:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Year[/TD]
[TD]Grade[/TD]
[/TR]
[TR]
[TD]Year 10[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]Year 10[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Year 10[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]Year 10[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]Year 10[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]Year 11[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]Year 11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Year 11[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]Year 11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Year 11[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]Year 11[/TD]
[TD]B[/TD]
[/TR]
</tbody>[/TABLE]
Mode for Year 10 should be A
Mode for Year 11 should be B
This formula works, however, I can't add the Year criteria to it:
=INDEX('2013-14'!$R$2:$R$301,MODE(IF('2013-14'!$R$2:$R$301<>"",MATCH('2013-14'!$R$2:$R$301,'2013-14'!$R$2:$R$301,0))))
Thanks
[TABLE="width: 500"]
<tbody>[TR]
[TD]Year[/TD]
[TD]Grade[/TD]
[/TR]
[TR]
[TD]Year 10[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]Year 10[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Year 10[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]Year 10[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]Year 10[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]Year 11[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]Year 11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Year 11[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]Year 11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Year 11[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]Year 11[/TD]
[TD]B[/TD]
[/TR]
</tbody>[/TABLE]
Mode for Year 10 should be A
Mode for Year 11 should be B
This formula works, however, I can't add the Year criteria to it:
=INDEX('2013-14'!$R$2:$R$301,MODE(IF('2013-14'!$R$2:$R$301<>"",MATCH('2013-14'!$R$2:$R$301,'2013-14'!$R$2:$R$301,0))))
Thanks