Pivot Table, Max

poikl

Active Member
Joined
Jun 8, 2002
Messages
466
Platform
  1. Windows
Hi, I'd like help in adding a column to a Pivot Table where in ColA it lists 3000 Products and then in ColB thru ColBT it lists Truck Id# (example Truck#1, Truck #2 etc.) so in the added ColBU i'd like it to show the Truck# which was used most to carry that particular product.
So for example if Product Id# 123 was carried once in Truck #1 (ColB) and 3 times in Truck#3 (ColD) then in ColBU it would show ColD.
Can you please help me with this?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi P,

Here is a solution

Book1
ABCDEFGHIJKLM
1
2ProductAttributeValue
3LOW000003truck145EFGHIJKL
4LOW000003t216
5LOW000003t371Sum of ValueColumn Labels
6LOW000003t450Row Labelst2t3t4t5t6t7truck1
7LOW000003t587LOW00000126.292.44.84.540.792.082.7G
8LOW000003t652LOW00000397.964.256.032.057.373.572.0F
9LOW000003t723POF10052954.667.280.379.81.896.362.4K
10POF100549truck174POF10054938.73.919.688.877.983.685.0I
11POF100549t295RSW10202168.132.512.494.933.544.427.9I
12POF100549t343RSW10402193.052.82.645.241.957.529.1F
13POF100549t460RUG12121178.184.364.136.399.624.966.7J
14POF100549t585RUG12615189.364.678.855.255.474.639.9F
15POF100549t633RUG12657580.03.625.858.743.252.170.9F
16POF100549t753RUG12811747.519.642.364.995.079.346.9J
17RSW104021truck144RUG1281880.233.287.135.598.140.946.3J
18RSW104021t278RUG12833781.063.911.310.019.397.643.7K
19RSW104021t358RUG12872267.255.048.111.096.111.79.6J
20RSW104021t461RUG12881578.816.037.333.20.183.953.5K
21RSW104021t597RUG12908892.519.631.389.021.210.853.7F
22RSW104021t635RUG14321183.356.628.117.210.064.86.6F
23RSW104021t733RUG14615379.869.17.837.363.315.171.1F
24RUG128337truck152RUG14657535.828.017.565.335.679.153.3K
25RUG128337t292RUG14838850.838.513.061.822.257.036.4I
26RUG128337t337RUG14872437.427.294.521.73.735.173.4H
27RUG128337t433RUG14883528.262.337.128.296.25.022.0J
28RUG128337t52RUG14908815.298.53.422.40.24.378.7G
29RUG128337t673RUG15025763.674.462.7171.8121.481.2136.2I
30RUG128337t769RUG15122141.50.673.031.544.841.070.8H
31RUG143211truck160RUG15270687.932.468.032.49.088.222.9K
32RUG143211t215RUG15271071.467.860.779.366.149.936.0I
33RUG143211t320RUG15271173.13.420.877.145.567.098.1L
34RUG143211t476RUG15271719.63.067.939.629.253.331.5H
35RUG143211t584RUG15289282.936.772.566.738.028.462.4F
36RUG143211t661RUG15289480.238.739.868.59.960.60.4F
37RUG143211t732RUG15342326.276.514.551.228.652.326.2G
38RUG146153truck166RUG15470652.221.671.884.882.395.095.0L
39RUG146153t212RUG15473059.526.779.785.25.887.478.7K
40RUG146153t365RUG15473188.218.120.762.348.178.470.0F
41RUG146153t434Grand Total2,0701,4531,4551,8431,5411,9661,860
42RUG146153t520
43RUG146153t654
44RUG146153t761
45RUG146575truck131
46RUG146575t24
Sheet2
Cell Formulas
RangeFormula
E3:L3E3=CHAR(COLUMN()+64)
M7:M40M7=INDEX($E$3:$L$3,MATCH(MAX(E7:L7),E7:L7,0))


Regards,

G
 
Upvote 0

Forum statistics

Threads
1,214,878
Messages
6,122,062
Members
449,064
Latest member
scottdog129

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