Hello,
I have been struggling for a while with this one and decided to seek your help in solving my issue.
I have a 20 step questionnaire data that comes in the following format and it is downloaded into an excel spreadsheet in a table that looks like this (the table is called "test"):
[TABLE="width: 326"]
<colgroup><col style="text-align: center;"><col span="4" style="text-align: center;"></colgroup><tbody>[TR]
[TD="align: center"]Step 1[/TD]
[TD="align: center"]Step 2[/TD]
[TD="align: center"]Step 3[/TD]
[TD="align: center"]Step 4[/TD]
[TD="align: center"]Step 5 [/TD]
[/TR]
[TR]
[TD="align: center"]N[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]N/A[/TD]
[/TR]
</tbody>[/TABLE]
The only possible answers are "Y", "N" or "N/A" for each of the steps and there could be more than a hundred questionnaires completed (rows).
In a separate spreadsheet in the same file, I have a scorecard table that shows the values assigned to each of the 20 steps. It looks like this (the table is called "Scores"):
[TABLE="width: 389"]
<colgroup><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"></colgroup><tbody>[TR]
[TD="align: center"]Step 1[/TD]
[TD="align: center"]Step 2[/TD]
[TD="align: center"]Step 3[/TD]
[TD="align: center"]Step 4[/TD]
[TD="align: center"]Step 5[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]12[/TD]
[/TR]
</tbody>[/TABLE]
I am trying to build a formula that will identify the heading of each question (Step 1-20), look up each heading among the columns on the scorecard table, locate the number assigned to it if the answer is either “Y” or “N” (ignore the “N/A”s) and add all those numbers for the base score.
Then, (can be split into to or more formulas), the formula will add only the “Y” answers and tabulate them against the base score for a final score.
For illustration purposes the formula would, for the tables above, produce the following: Add 2+1+3+5=11, then add 1+3, then divide 4/11 for a final score of 0.36 (or 36%)
I started by using an index/match combo but can't find a way to incorporate the condition for "Y" and "N": =INDEX(Scores!$A$3:$O$3,MATCH(Test!A2,Scores[#Headers],0))+INDEX(Scores!$A$3:$O$3,MATCH(Test!B2,Scores[#Headers],0))+INDEX(Scores!$A$3:$O$3,MATCH(Test!C2,Scores[#Headers],0))+INDEX(Scores!$A$3:$O$3,MATCH(Test!D2,Scores[#Headers],0))+INDEX(Scores!$A$3:$O$3,MATCH(Test!E2,Scores[#Headers],0))
About to toss the index/match because I think it is too complicated.. looking for a simpler solution. Really stuck with this one… any help is truly appreciated.
Thank you so much in advance for any help or guidance you can offer,
Marta
I have been struggling for a while with this one and decided to seek your help in solving my issue.
I have a 20 step questionnaire data that comes in the following format and it is downloaded into an excel spreadsheet in a table that looks like this (the table is called "test"):
[TABLE="width: 326"]
<colgroup><col style="text-align: center;"><col span="4" style="text-align: center;"></colgroup><tbody>[TR]
[TD="align: center"]Step 1[/TD]
[TD="align: center"]Step 2[/TD]
[TD="align: center"]Step 3[/TD]
[TD="align: center"]Step 4[/TD]
[TD="align: center"]Step 5 [/TD]
[/TR]
[TR]
[TD="align: center"]N[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]Y[/TD]
[TD="align: center"]N[/TD]
[TD="align: center"]N/A[/TD]
[/TR]
</tbody>[/TABLE]
The only possible answers are "Y", "N" or "N/A" for each of the steps and there could be more than a hundred questionnaires completed (rows).
In a separate spreadsheet in the same file, I have a scorecard table that shows the values assigned to each of the 20 steps. It looks like this (the table is called "Scores"):
[TABLE="width: 389"]
<colgroup><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"></colgroup><tbody>[TR]
[TD="align: center"]Step 1[/TD]
[TD="align: center"]Step 2[/TD]
[TD="align: center"]Step 3[/TD]
[TD="align: center"]Step 4[/TD]
[TD="align: center"]Step 5[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]12[/TD]
[/TR]
</tbody>[/TABLE]
I am trying to build a formula that will identify the heading of each question (Step 1-20), look up each heading among the columns on the scorecard table, locate the number assigned to it if the answer is either “Y” or “N” (ignore the “N/A”s) and add all those numbers for the base score.
Then, (can be split into to or more formulas), the formula will add only the “Y” answers and tabulate them against the base score for a final score.
For illustration purposes the formula would, for the tables above, produce the following: Add 2+1+3+5=11, then add 1+3, then divide 4/11 for a final score of 0.36 (or 36%)
I started by using an index/match combo but can't find a way to incorporate the condition for "Y" and "N": =INDEX(Scores!$A$3:$O$3,MATCH(Test!A2,Scores[#Headers],0))+INDEX(Scores!$A$3:$O$3,MATCH(Test!B2,Scores[#Headers],0))+INDEX(Scores!$A$3:$O$3,MATCH(Test!C2,Scores[#Headers],0))+INDEX(Scores!$A$3:$O$3,MATCH(Test!D2,Scores[#Headers],0))+INDEX(Scores!$A$3:$O$3,MATCH(Test!E2,Scores[#Headers],0))
About to toss the index/match because I think it is too complicated.. looking for a simpler solution. Really stuck with this one… any help is truly appreciated.
Thank you so much in advance for any help or guidance you can offer,
Marta