I am working on some vlookups from a Pivot table that has five results on them; however some of the results are null, so the column disappears. I have been able to link it to the grand total, which is what I want, just not to sure how I can get it to link on the columns. This is my statement:
=IF(AND((VLOOKUP("Grand Total"&"",Workings!$I$110:$N$130,2,0)),D$7=Workings!J$110),(VLOOKUP("Grand Total"&"",Workings!$I$110:$N$130,2,0)),Workings!J$110)
Where the Workings is the Pivot Tables, and once a column is missing, I have the statement indicate what result was in that question. Just need to ensure that each pivot result is going into the correct column on my data sheet. You will see from below that question 1 does not have any values for Slightly Significant, and the results coming up in that column would be for Not at All Significant. I would prefer the Slightly Significant column having a zero, and move the Not at all significant to the correct corresponding column.
Regards,
[TABLE="width: 792"]
<colgroup><col><col><col><col span="2"><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD="align: center"]Extremely Significant[/TD]
[TD="align: center"]Very Significant[/TD]
[TD="align: center"]Moderately Significant[/TD]
[TD="align: center"]Slightly Significant[/TD]
[TD="align: center"]Not at all Significant[/TD]
[TD="align: center"]Grand Total[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]Not at all Significant[/TD]
[TD="align: center"]Grand Total[/TD]
[TD="align: center"]#REF![/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]20[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]20[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]20[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]20[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]Slightly Significant[/TD]
[TD="align: center"]Not at all Significant[/TD]
[TD="align: center"]Grand Total[/TD]
[TD="align: center"]#REF![/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]20[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]Slightly Significant[/TD]
[TD="align: center"]Not at all Significant[/TD]
[TD="align: center"]Grand Total[/TD]
[TD="align: center"]#REF![/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"]20[/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"]20[/TD]
[/TR]
[TR]
[TD="align: center"]11[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]Not at all Significant[/TD]
[TD="align: center"]Grand Total[/TD]
[TD="align: center"]#REF![/TD]
[/TR]
[TR]
[TD="align: center"]12[/TD]
[TD="align: center"]Very Significant[/TD]
[TD="align: center"]Moderately Significant[/TD]
[TD="align: center"]Slightly Significant[/TD]
[TD="align: center"]Not at all Significant[/TD]
[TD="align: center"]Grand Total[/TD]
[TD="align: center"]#REF![/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]14[/TD]
[TD="align: center"]20[/TD]
[/TR]
[TR]
[TD="align: center"]14[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"]20[/TD]
[/TR]
[TR]
[TD="align: center"]15[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]11[/TD]
[TD="align: center"]20[/TD]
[/TR]
</tbody>[/TABLE]
=IF(AND((VLOOKUP("Grand Total"&"",Workings!$I$110:$N$130,2,0)),D$7=Workings!J$110),(VLOOKUP("Grand Total"&"",Workings!$I$110:$N$130,2,0)),Workings!J$110)
Where the Workings is the Pivot Tables, and once a column is missing, I have the statement indicate what result was in that question. Just need to ensure that each pivot result is going into the correct column on my data sheet. You will see from below that question 1 does not have any values for Slightly Significant, and the results coming up in that column would be for Not at All Significant. I would prefer the Slightly Significant column having a zero, and move the Not at all significant to the correct corresponding column.
Regards,
[TABLE="width: 792"]
<colgroup><col><col><col><col span="2"><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD="align: center"]Extremely Significant[/TD]
[TD="align: center"]Very Significant[/TD]
[TD="align: center"]Moderately Significant[/TD]
[TD="align: center"]Slightly Significant[/TD]
[TD="align: center"]Not at all Significant[/TD]
[TD="align: center"]Grand Total[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]Not at all Significant[/TD]
[TD="align: center"]Grand Total[/TD]
[TD="align: center"]#REF![/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]20[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]20[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]20[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]20[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]Slightly Significant[/TD]
[TD="align: center"]Not at all Significant[/TD]
[TD="align: center"]Grand Total[/TD]
[TD="align: center"]#REF![/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]20[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]Slightly Significant[/TD]
[TD="align: center"]Not at all Significant[/TD]
[TD="align: center"]Grand Total[/TD]
[TD="align: center"]#REF![/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"]20[/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"]20[/TD]
[/TR]
[TR]
[TD="align: center"]11[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]Not at all Significant[/TD]
[TD="align: center"]Grand Total[/TD]
[TD="align: center"]#REF![/TD]
[/TR]
[TR]
[TD="align: center"]12[/TD]
[TD="align: center"]Very Significant[/TD]
[TD="align: center"]Moderately Significant[/TD]
[TD="align: center"]Slightly Significant[/TD]
[TD="align: center"]Not at all Significant[/TD]
[TD="align: center"]Grand Total[/TD]
[TD="align: center"]#REF![/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]14[/TD]
[TD="align: center"]20[/TD]
[/TR]
[TR]
[TD="align: center"]14[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"]20[/TD]
[/TR]
[TR]
[TD="align: center"]15[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]11[/TD]
[TD="align: center"]20[/TD]
[/TR]
</tbody>[/TABLE]