DSL1970

New Member
Joined
Jun 28, 2012
Messages
16
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,

Extremely SignificantVery SignificantModerately SignificantSlightly SignificantNot at all SignificantGrand Total
1942Not at all SignificantGrand Total#REF!
23621820
35422720
47261420
57223620
643Slightly SignificantNot at all SignificantGrand Total#REF!
76242620
885Slightly SignificantNot at all SignificantGrand Total#REF!
97211920
106131920
11023Not at all SignificantGrand Total#REF!
12Very SignificantModerately SignificantSlightly SignificantNot at all SignificantGrand Total#REF!
1313111420
1432121220
1531321120

<colgroup><col><col><col><col span="2"><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
I'm not sure I follow you entirely, but when faced with a similar situation, I create a secondary table with error checking. In this manner one can account for the disappearing columns on certain questions. SO in your case I would create a table and in one column I would have the words Extremely Significant, Very Significant, Moderately Significant, Slightly Significant, Not at all Significant, Grand Total. On a 2nd column I would do a vlookup such as "if(iserror(vloookup(K5,I110:N130,2,0)),0,vloookup(K5,I110:N130,2,0)). Where k5 houses the first value of the created table "Extremely Significant"; therefore, if "Extremely Significant" has disappeared from the pivot table, it returns a 0. Have your vlookups point to this table instead of the pivot itself. Hope this is of use to you.

Cheers,

Ben
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,500
Members
449,090
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top