Having trouble getting Pivot Table data to pull from pivot table to regular table using =GetPivotData()

dragontbone

New Member
Joined
Sep 28, 2022
Messages
37
Office Version
  1. 365
Platform
  1. Windows
I am trying to pull data from the pivot table into the table at the top of the page. I keep getting an #REF error and am unsure what is happening.

CurrentCommissionTracker.xlsm
ABCDEFGH
5MichaelMattGrantVickiShawna/JohnTotalAverage
6
7Num of Transactions#REF!#REF!#REF!#REF!#REF!#REF!#REF!
8Total Transaction Amt#REF!#REF!#REF!#REF!#REF!#REF!#REF!
9Gross Commissions#REF!#REF!#REF!#REF!#REF!#REF!#REF!
10% WP Affiliated#REF!#REF!#REF!#REF!#REF!#REF!
11% Non-Affiliated#REF!#REF!#REF!#REF!#REF!#REF!
12Detail by Deal Type
13
14Ave Transaction Gross#REF!#REF!#REF!#REF!#REF!#REF!
15Ave Transaction size#REF!#REF!#REF!#REF!#REF!#REF!
16Broker Commissions#REF!#REF!#REF!#REF!#REF!#REF!
17Corporate Commissions#REF!#REF!#REF!#REF!#REF!#REF!
18Share to Broker#REF!#REF!#REF!#REF!#REF!#REF!
19
20
21
22
23
24
25
26Year(All)
27Comm Status(All)
28
29Column Labels
30ValuesGrantJohnMattMichaelShawnaVickiGrand Total
31Count of Invoice #621824261842190
32Sum of Sale Price$13,476,424.12$3,057,795.43$8,928,688.87$1,494,484.13$3,237,795.43$6,720,730.23$36,915,918.21
33Sum of Gross$ 500,282.43$ 111,181.19$ 104,052.43$ 76,094.50$ 120,181.19$ 267,308.78$ 1,179,100.52
34Average of Gross$ 8,069.07$ 6,540.07$ 4,524.02$ 3,043.78$ 7,069.48$ 6,519.73$ 6,373.52
35Sum of Broker Commission$198,247.95$50,699.24$51,929.08$34,273.58$56,099.24$89,670.04$480,919.13
36Sum of Corporate$198,247.94$33,799.52$51,929.10$34,273.60$37,399.52$89,670.01$445,319.69
37
38
39
40
41
42
43
44
45
46
47
48
49Year(All)
50Comm Status(All)
51
52Sum of Sale PriceColumn Labels
53Row LabelsGrantJohnMattMichaelShawnaVickiGrand Total
54Consulting$ 8,500.00$ -$ 87,563.88$ 96,063.88
55Lease Expansion$ 94,332.06$ 88,701.31$ 94,332.06$ 277,365.43
56Lease Renewal$ 2,423,004.25$ 720,459.54#############$ 628,118.89$ 720,459.54###########################
57New Lease$ 3,771,059.87$ 396,739.83#############$ 691,365.24$ 396,739.83###########################
58Sale$ 7,273,860.00#############$ 175,000.00########################################
59Grand Total13476424.123057795.438928688.871494484.133237795.436720730.2336915918.21
60
61
62
63
64
65
66
67Comm Status(All)
68Year(All)
69WP AffiliateYes
70
71Column Labels
72GrantJohnMattMichaelShawnaVickiGrand Total
73Count of Invoice #13113111140
OBK Summary Detail
Cell Formulas
RangeFormula
B7B7=GETPIVOTDATA(GETPIVOTDATA("Count of Invoice #",$A$29,"Broker","Michael"),Net_Acc_Comm,"Count of Invoice #",$A$29,"Broker","Michael")
C7C7=GETPIVOTDATA("[Measures].[Count of Invoice #]",$A$29,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Matt]")
D7D7=GETPIVOTDATA("[Measures].[Count of Invoice #]",$A$29,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Grant]")
E7E7=GETPIVOTDATA("[Measures].[Count of Invoice #]",$A$29,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Vicki]")
F7F7=(GETPIVOTDATA("[Measures].[Count of Invoice #]",$A$29,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[John]")+GETPIVOTDATA("[Measures].[Count of Invoice #]",$A$29,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Shawna]"))/2
G7:G9G7=SUM(B7:F7)
H7:H9H7=G7/7
B8B8=GETPIVOTDATA("[Measures].[Sum of Sale Price]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Michael]")
C8C8=GETPIVOTDATA("[Measures].[Sum of Sale Price]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Matt]")
D8D8=GETPIVOTDATA("[Measures].[Sum of Sale Price]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Grant]")
E8E8=GETPIVOTDATA("[Measures].[Sum of Sale Price]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Vicki]")
F8F8=GETPIVOTDATA("[Measures].[Sum of Sale Price]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[John]")+GETPIVOTDATA("[Measures].[Sum of Sale Price]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Shawna]")
B9B9=GETPIVOTDATA("[Measures].[Sum of Gross]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Michael]")
C9C9=GETPIVOTDATA("[Measures].[Sum of Gross]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Matt]")
D9D9=GETPIVOTDATA("[Measures].[Sum of Gross]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Grant]")
E9E9=GETPIVOTDATA("[Measures].[Sum of Gross]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Vicki]")
F9F9=GETPIVOTDATA("[Measures].[Sum of Gross]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[John]")+GETPIVOTDATA("[Measures].[Sum of Gross]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Shawna]")
B10B10=GETPIVOTDATA("[Measures].[Distinct Count of Invoice #]",$A$75,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Michael]")/B7
C10C10=GETPIVOTDATA("[Measures].[Distinct Count of Invoice #]",$A$75,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Matt]")/C7
D10D10=GETPIVOTDATA("[Measures].[Distinct Count of Invoice #]",$A$75,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Grant]")/D7
E10E10=GETPIVOTDATA("[Measures].[Distinct Count of Invoice #]",$A$75,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Vicki]")/E7
F10F10=GETPIVOTDATA("[Measures].[Distinct Count of Invoice #]",$A$75,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Shawna]")/F7
G10G10=GETPIVOTDATA("[Measures].[Distinct Count of Invoice #]",$A$75)/G7
B11B11=(B7-GETPIVOTDATA("[Measures].[Distinct Count of Invoice #]",$A$75,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Michael]"))/B7
C11C11=(C7-GETPIVOTDATA("[Measures].[Distinct Count of Invoice #]",$A$75,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Matt]"))/C7
D11D11=(D7-GETPIVOTDATA("[Measures].[Distinct Count of Invoice #]",$A$75,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Grant]"))/D7
E11E11=(E7-GETPIVOTDATA("[Measures].[Distinct Count of Invoice #]",$A$75,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Vicki]"))/E7
F11F11=(F7-GETPIVOTDATA("[Measures].[Distinct Count of Invoice #]",$A$75,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Shawna]"))/F7
G11G11=(G7-GETPIVOTDATA("[Measures].[Distinct Count of Invoice #]",$A$75))/G7
B14B14=GETPIVOTDATA("[Measures].[Average of Gross]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Michael]")
C14C14=GETPIVOTDATA("[Measures].[Average of Gross]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Matt]")
D14D14=GETPIVOTDATA("[Measures].[Average of Gross]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Grant]")
E14E14=GETPIVOTDATA("[Measures].[Average of Gross]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Vicki]")
F14F14=GETPIVOTDATA("[Measures].[Average of Gross]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Shawna]")+GETPIVOTDATA("[Measures].[Average of Gross]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[John]")
G14G14=GETPIVOTDATA("[Measures].[Average of Gross]",#REF!)
B15B15=GETPIVOTDATA("[Measures].[Average of Square Ft]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Michael]")
C15C15=GETPIVOTDATA("[Measures].[Average of Square Ft]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Matt]")
D15D15=GETPIVOTDATA("[Measures].[Average of Square Ft]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Grant]")
E15E15=GETPIVOTDATA("[Measures].[Average of Square Ft]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Vicki]")
F15F15=GETPIVOTDATA("[Measures].[Average of Square Ft]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[John]")+GETPIVOTDATA("[Measures].[Average of Square Ft]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Shawna]")
G15G15=GETPIVOTDATA("[Measures].[Average of Square Ft]",#REF!)
B16B16=GETPIVOTDATA("[Measures].[Sum of Broker Commission]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Michael]")
C16C16=GETPIVOTDATA("[Measures].[Sum of Broker Commission]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Matt]")
D16D16=GETPIVOTDATA("[Measures].[Sum of Broker Commission]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Grant]")
E16E16=GETPIVOTDATA("[Measures].[Sum of Broker Commission]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Vicki]")
F16F16=GETPIVOTDATA("[Measures].[Sum of Broker Commission]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Shawna]")+GETPIVOTDATA("[Measures].[Sum of Broker Commission]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[John]")
G16G16=GETPIVOTDATA("[Measures].[Sum of Broker Commission]",#REF!)
B17B17=GETPIVOTDATA("[Measures].[Sum of Corporate]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Michael]")
C17C17=GETPIVOTDATA("[Measures].[Sum of Corporate]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Matt]")
D17D17=GETPIVOTDATA("[Measures].[Sum of Corporate]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Grant]")
E17E17=GETPIVOTDATA("[Measures].[Sum of Corporate]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Vicki]")
F17F17=GETPIVOTDATA("[Measures].[Sum of Corporate]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[John]")+GETPIVOTDATA("[Measures].[Sum of Corporate]",#REF!,"[Net_Acc_Comm].[Broker]","[Net_Acc_Comm].[Broker].&[Shawna]")
G17G17=GETPIVOTDATA("[Measures].[Sum of Corporate]",#REF!)
B18:G18B18=B16/(B16+B17)
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Good to hear you got the solution.
If you would like to post the solution then it is perfectly fine to mark your post as the solution to help future readers. I understand you shared a video link but it is a 12 minutes video, so that would be more helpful if you could explain what was wrong in your data set.
Otherwise, please do not mark a post that doesn't contain a solution.
 
Upvote 0
Good to hear you got the solution.
If you would like to post the solution then it is perfectly fine to mark your post as the solution to help future readers. I understand you shared a video link but it is a 12 minutes video, so that would be more helpful if you could explain what was wrong in your data set.
Otherwise, please do not mark a post that doesn't contain a solution.
I understand. The solution was to watch the video to understand the formula. My lack of knowledge about the formula was what the problem was. At the time, I didn't think to look for a video of the function, so I came here thinking that this was the best place for help. The solution is to do some research before coming here for help.
 
Upvote 0
You posted a mini-sheet with #REF! errors above, because you wrote a wrong formula, or deleted a referenced column or columns.
Apparently, after watching the video, and making some research, you found the solution. That’s great!

Now, you can just copy another mini-sheet with the fixed formula and post it. That will show the solution to the future readers of this question that might be having the similar problem.

If you can’t do that for some reason, please do not mark a solution that doesn’t contain a solution.

I hope this makes sense.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,190
Members
452,616
Latest member
intern444

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