I'm in need of an Excel formula that returns an array (A long array) where each index value is equal to 1 or 0 - the True/False statement of whether each cell in a range of cells is equal to a value in another range of cells.
I have the following range of cells (This range is really 100 cells long, but shortened for explanation purposes)
[TABLE="width: 500"]
<tbody>[TR]
[TD]Member1[/TD]
[TD]Member2[/TD]
[TD]Member3[/TD]
[TD]Member4[/TD]
[TD]Member5[/TD]
[TD]Member6[/TD]
[TD]Member7[/TD]
[TD]Member8[/TD]
[TD]Member9[/TD]
[TD]Member10[/TD]
[/TR]
</tbody>[/TABLE]
I also have the following mapping table which may be out of numerical/alphabetical order at any time:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Member
[/TD]
[TD]Group[/TD]
[/TR]
[TR]
[TD]Member1[/TD]
[TD]Group 1[/TD]
[/TR]
[TR]
[TD]Member2[/TD]
[TD]Group 2[/TD]
[/TR]
[TR]
[TD]Member3[/TD]
[TD]Group 1[/TD]
[/TR]
[TR]
[TD]Member4[/TD]
[TD]Group 2[/TD]
[/TR]
[TR]
[TD]Member5[/TD]
[TD]Group 1[/TD]
[/TR]
[TR]
[TD]Member6[/TD]
[TD]Group 2[/TD]
[/TR]
[TR]
[TD]Member7[/TD]
[TD]Group 1[/TD]
[/TR]
[TR]
[TD]Member8[/TD]
[TD]Group 2[/TD]
[/TR]
[TR]
[TD]Member9[/TD]
[TD]Group 1[/TD]
[/TR]
[TR]
[TD]Member10[/TD]
[TD]Group 2[/TD]
[/TR]
</tbody>[/TABLE]
I'd like a formula that will output the following array value {1,0,1,0,1,0,1,0,1,0}(For use inside a formula) when fed the mapping value of "Group 1". The array value should be based on the position of the Members in the horizontal range at the top, not based on the mapping table order.
I have the following range of cells (This range is really 100 cells long, but shortened for explanation purposes)
[TABLE="width: 500"]
<tbody>[TR]
[TD]Member1[/TD]
[TD]Member2[/TD]
[TD]Member3[/TD]
[TD]Member4[/TD]
[TD]Member5[/TD]
[TD]Member6[/TD]
[TD]Member7[/TD]
[TD]Member8[/TD]
[TD]Member9[/TD]
[TD]Member10[/TD]
[/TR]
</tbody>[/TABLE]
I also have the following mapping table which may be out of numerical/alphabetical order at any time:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Member
[/TD]
[TD]Group[/TD]
[/TR]
[TR]
[TD]Member1[/TD]
[TD]Group 1[/TD]
[/TR]
[TR]
[TD]Member2[/TD]
[TD]Group 2[/TD]
[/TR]
[TR]
[TD]Member3[/TD]
[TD]Group 1[/TD]
[/TR]
[TR]
[TD]Member4[/TD]
[TD]Group 2[/TD]
[/TR]
[TR]
[TD]Member5[/TD]
[TD]Group 1[/TD]
[/TR]
[TR]
[TD]Member6[/TD]
[TD]Group 2[/TD]
[/TR]
[TR]
[TD]Member7[/TD]
[TD]Group 1[/TD]
[/TR]
[TR]
[TD]Member8[/TD]
[TD]Group 2[/TD]
[/TR]
[TR]
[TD]Member9[/TD]
[TD]Group 1[/TD]
[/TR]
[TR]
[TD]Member10[/TD]
[TD]Group 2[/TD]
[/TR]
</tbody>[/TABLE]
I'd like a formula that will output the following array value {1,0,1,0,1,0,1,0,1,0}(For use inside a formula) when fed the mapping value of "Group 1". The array value should be based on the position of the Members in the horizontal range at the top, not based on the mapping table order.