Similar to the vlookup solution that does rows, I am interested to lookup rows and display as columns. (all matches)
INPUT
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]StaffType[/TD]
[TD]StaffMember[/TD]
[/TR]
[TR]
[TD]Manager[/TD]
[TD]Jane[/TD]
[/TR]
[TR]
[TD]Worker[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD]Worker[/TD]
[TD]Tom[/TD]
[/TR]
[TR]
[TD]Manager[/TD]
[TD]****[/TD]
[/TR]
[TR]
[TD]Worker[/TD]
[TD]Harry[/TD]
[/TR]
[TR]
[TD]Worker[/TD]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Worker[/TD]
[TD]Joe[/TD]
[/TR]
</tbody>[/TABLE]
DESIRED OUTPUT
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Member1[/TD]
[TD]Member2[/TD]
[TD]Member3[/TD]
[TD]Member4[/TD]
[TD]Member5[/TD]
[/TR]
[TR]
[TD]Manager[/TD]
[TD]****[/TD]
[TD]Jane[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Worker[/TD]
[TD]Bob[/TD]
[TD]Harry[/TD]
[TD]Joe[/TD]
[TD]John[/TD]
[TD]Tom[/TD]
[/TR]
</tbody>[/TABLE]
Note the input is unsorted and the output is sorted
I played with the vlookup and rows/index match solutions for a bit, but couldn't work out how to transpose the output or sort it.
INPUT
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]StaffType[/TD]
[TD]StaffMember[/TD]
[/TR]
[TR]
[TD]Manager[/TD]
[TD]Jane[/TD]
[/TR]
[TR]
[TD]Worker[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD]Worker[/TD]
[TD]Tom[/TD]
[/TR]
[TR]
[TD]Manager[/TD]
[TD]****[/TD]
[/TR]
[TR]
[TD]Worker[/TD]
[TD]Harry[/TD]
[/TR]
[TR]
[TD]Worker[/TD]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Worker[/TD]
[TD]Joe[/TD]
[/TR]
</tbody>[/TABLE]
DESIRED OUTPUT
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Member1[/TD]
[TD]Member2[/TD]
[TD]Member3[/TD]
[TD]Member4[/TD]
[TD]Member5[/TD]
[/TR]
[TR]
[TD]Manager[/TD]
[TD]****[/TD]
[TD]Jane[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Worker[/TD]
[TD]Bob[/TD]
[TD]Harry[/TD]
[TD]Joe[/TD]
[TD]John[/TD]
[TD]Tom[/TD]
[/TR]
</tbody>[/TABLE]
Note the input is unsorted and the output is sorted
I played with the vlookup and rows/index match solutions for a bit, but couldn't work out how to transpose the output or sort it.