Hello,
I have a table of data (shortened example below) with 40+ questions and 500 + respondents.
The green section of the table indicates the questions that were answered incorrectly by an individual and the number of times they answered the question incorrectly (these are quality checks so the same questions are checked multiple times)
I'd like to be able to consolidate the data (via either formula or simple code) so that for each person, just the incorrect questions and the number of times incorrect are shown (as per the example in the red section of the table). Effectively ignoring those where there are no errors and returning a horizontal list of errors in separate cells with no blanks.
Any help would be much appreciated.
David
[TABLE="width: 525"]
<tbody>[TR]
[TD="class: xl67, width: 55, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, width: 40, bgcolor: #EBF1DE"]Qu1
[/TD]
[TD="class: xl68, width: 40, bgcolor: #EBF1DE"]Qu2
[/TD]
[TD="class: xl68, width: 40, bgcolor: #EBF1DE"]Qu3
[/TD]
[TD="class: xl68, width: 40, bgcolor: #EBF1DE"]Qu4
[/TD]
[TD="class: xl68, width: 40, bgcolor: #EBF1DE"]Qu5
[/TD]
[TD="class: xl68, width: 40, bgcolor: #EBF1DE"]Qu6
[/TD]
[TD="class: xl68, width: 40, bgcolor: #EBF1DE"]Qu7
[/TD]
[TD="class: xl68, width: 40, bgcolor: #EBF1DE"]Qu8
[/TD]
[TD="class: xl68, width: 40, bgcolor: #EBF1DE"]Qu9
[/TD]
[TD="class: xl68, width: 40, bgcolor: #EBF1DE"]Qu10
[/TD]
[TD="class: xl66, width: 61, bgcolor: transparent"][/TD]
[TD="class: xl66, width: 61, bgcolor: transparent"][/TD]
[TD="class: xl66, width: 61, bgcolor: transparent"][/TD]
[TD="class: xl66, width: 61, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: #EBF1DE"]Person 1
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]1
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]2
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]1
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]1
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu1 (1)
[/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu3 (2)
[/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu5 (1)
[/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu7 (1)
[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: #EBF1DE"]Person 2
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]1
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]2
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]1
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]1
[/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu2 (1)
[/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu6 (2)
[/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu9 (1)
[/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu10 (1)
[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: #EBF1DE"]Person 3
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl69, bgcolor: #F2DCDB"][/TD]
[TD="class: xl69, bgcolor: #F2DCDB"][/TD]
[TD="class: xl69, bgcolor: #F2DCDB"][/TD]
[TD="class: xl69, bgcolor: #F2DCDB"][/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: #EBF1DE"]Person 4
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]1
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu4 (1)
[/TD]
[TD="class: xl69, bgcolor: #F2DCDB"][/TD]
[TD="class: xl69, bgcolor: #F2DCDB"][/TD]
[TD="class: xl69, bgcolor: #F2DCDB"][/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: #EBF1DE"]Person 5
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]1
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]3
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]1
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu3 (1)
[/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu5 (3)
[/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu8 (1)
[/TD]
[TD="class: xl69, bgcolor: #F2DCDB"][/TD]
[/TR]
</tbody>[/TABLE]
I have a table of data (shortened example below) with 40+ questions and 500 + respondents.
The green section of the table indicates the questions that were answered incorrectly by an individual and the number of times they answered the question incorrectly (these are quality checks so the same questions are checked multiple times)
I'd like to be able to consolidate the data (via either formula or simple code) so that for each person, just the incorrect questions and the number of times incorrect are shown (as per the example in the red section of the table). Effectively ignoring those where there are no errors and returning a horizontal list of errors in separate cells with no blanks.
Any help would be much appreciated.
David
[TABLE="width: 525"]
<tbody>[TR]
[TD="class: xl67, width: 55, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, width: 40, bgcolor: #EBF1DE"]Qu1
[/TD]
[TD="class: xl68, width: 40, bgcolor: #EBF1DE"]Qu2
[/TD]
[TD="class: xl68, width: 40, bgcolor: #EBF1DE"]Qu3
[/TD]
[TD="class: xl68, width: 40, bgcolor: #EBF1DE"]Qu4
[/TD]
[TD="class: xl68, width: 40, bgcolor: #EBF1DE"]Qu5
[/TD]
[TD="class: xl68, width: 40, bgcolor: #EBF1DE"]Qu6
[/TD]
[TD="class: xl68, width: 40, bgcolor: #EBF1DE"]Qu7
[/TD]
[TD="class: xl68, width: 40, bgcolor: #EBF1DE"]Qu8
[/TD]
[TD="class: xl68, width: 40, bgcolor: #EBF1DE"]Qu9
[/TD]
[TD="class: xl68, width: 40, bgcolor: #EBF1DE"]Qu10
[/TD]
[TD="class: xl66, width: 61, bgcolor: transparent"][/TD]
[TD="class: xl66, width: 61, bgcolor: transparent"][/TD]
[TD="class: xl66, width: 61, bgcolor: transparent"][/TD]
[TD="class: xl66, width: 61, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: #EBF1DE"]Person 1
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]1
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]2
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]1
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]1
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu1 (1)
[/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu3 (2)
[/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu5 (1)
[/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu7 (1)
[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: #EBF1DE"]Person 2
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]1
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]2
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]1
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]1
[/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu2 (1)
[/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu6 (2)
[/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu9 (1)
[/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu10 (1)
[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: #EBF1DE"]Person 3
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl69, bgcolor: #F2DCDB"][/TD]
[TD="class: xl69, bgcolor: #F2DCDB"][/TD]
[TD="class: xl69, bgcolor: #F2DCDB"][/TD]
[TD="class: xl69, bgcolor: #F2DCDB"][/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: #EBF1DE"]Person 4
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]1
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu4 (1)
[/TD]
[TD="class: xl69, bgcolor: #F2DCDB"][/TD]
[TD="class: xl69, bgcolor: #F2DCDB"][/TD]
[TD="class: xl69, bgcolor: #F2DCDB"][/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: #EBF1DE"]Person 5
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]1
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]3
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"]1
[/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl68, bgcolor: #EBF1DE"][/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu3 (1)
[/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu5 (3)
[/TD]
[TD="class: xl69, bgcolor: #F2DCDB"]Qu8 (1)
[/TD]
[TD="class: xl69, bgcolor: #F2DCDB"][/TD]
[/TR]
</tbody>[/TABLE]