As the title says really. I have a table which looks something like:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Ethnicity[/TD]
[TD]English[/TD]
[TD]Maths[/TD]
[TD]Science[/TD]
[TD]Triple Science[/TD]
[TD]Art[/TD]
[TD]Drama[/TD]
[TD]Citizenship[/TD]
[TD]Geography[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Black Caribbean[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD][/TD]
[TD][/TD]
[TD]Y[/TD]
[TD][/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Afghan[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD][/TD]
[TD]Y[/TD]
[TD][/TD]
[TD]Y[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Afghan[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD][/TD]
[TD][/TD]
[TD]Y[/TD]
[TD][/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Indian[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD][/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[/TR]
</tbody>[/TABLE]
So I want a unique list of Ethnicities for all students who are studying Art.
At the moment I am using formula {=IFERROR(INDEX(Ethnicity,MATCH(0,COUNTIF($B$30:B30,Ethnicity),0)),"")}, however, this just gives me a list of unique ethnicities for the entire cohort of students not just the ones studying the subject.
Any help would be appreciated.
Thanks
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Ethnicity[/TD]
[TD]English[/TD]
[TD]Maths[/TD]
[TD]Science[/TD]
[TD]Triple Science[/TD]
[TD]Art[/TD]
[TD]Drama[/TD]
[TD]Citizenship[/TD]
[TD]Geography[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Black Caribbean[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD][/TD]
[TD][/TD]
[TD]Y[/TD]
[TD][/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Afghan[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD][/TD]
[TD]Y[/TD]
[TD][/TD]
[TD]Y[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Afghan[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD][/TD]
[TD][/TD]
[TD]Y[/TD]
[TD][/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Indian[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[TD][/TD]
[TD]Y[/TD]
[TD]Y[/TD]
[/TR]
</tbody>[/TABLE]
So I want a unique list of Ethnicities for all students who are studying Art.
At the moment I am using formula {=IFERROR(INDEX(Ethnicity,MATCH(0,COUNTIF($B$30:B30,Ethnicity),0)),"")}, however, this just gives me a list of unique ethnicities for the entire cohort of students not just the ones studying the subject.
Any help would be appreciated.
Thanks