I have a table that looks like this:
QuestionNum AnswerChoice
1 a
1 a
2 b
2 b
2 a
3 c
3 d
3 c
4 a
4 b
I would like to select the distinct values from the QuestionNum column as column headers and still list each answer choice underneath, so it should look like this:
1 2 3 4
a b c a
a b d b
a c
I started looking at Pivot tables, but the QuestionNum is going to be unknown. Also, I couldnt figure out a way to select multiple rows from the original.