Pivot Sum at every change in price

Sanjeev1976

Active Member
Joined
Dec 25, 2008
Messages
474
Office Version
  1. 365
Platform
  1. Windows
Please help me with the subject query based on below data

Book2
ABCDEFGHIJKLMNO
1MonthProductQtyPrice1Price2Price3Value1Value2Value3
2Jan-15A11582.50555.64580.006,407.506,112.046,380.00Row LabelsSum of QtySum of Value1Sum of Value2Sum of Value3
3Jan-15B2559.00546.18580.001,118.001,092.361,160.00Jan-152,7701,324,9181,335,7361,438,826
4Jan-15C10682.00653.03580.006,820.006,530.305,800.00A116,4086,1126,380
5Jan-15D36650.50628.03652.5023,418.0022,609.0823,490.00B342199,051190,390210,860
6Jan-15E8371.00363.03405.002,968.002,904.243,240.00C4027,28026,12123,200
7Jan-15F6296.50333.03392.501,779.001,998.182,355.00D395256,948250,543276,200
8Jan-15B14582.50553.03580.008,155.007,742.428,120.00E8230,42230,22733,710
9Jan-15G19505.92503.03487.009,612.489,557.579,253.00F887262,996296,100290,773
10Jan-15H4582.50553.03580.002,330.002,212.122,320.00G633320,247324,212360,271
11Jan-15H16582.50555.64580.009,320.008,890.249,280.00H10259,41556,66564,160
12Jan-15G19505.92503.03487.009,612.489,557.579,253.00I255148,209141,696160,400
13Jan-15B20582.50553.03580.0011,650.0011,060.6011,600.00J149,4089,1428,120
14Jan-15I1582.50553.03580.00582.50553.03580.00K94,5364,5274,752
15Jan-15I19582.50553.03580.0011,067.5010,507.5711,020.00Feb-155,1262,480,3832,566,1132,737,853
16Jan-15B29582.50553.03580.0016,892.5016,037.8716,820.00A8549,51347,62953,800
17Jan-15B11582.50553.03580.006,407.506,083.336,380.00B748435,524420,428478,840
18Jan-15I17582.50555.64580.009,902.509,445.889,860.00C11679,11275,75175,280
19Jan-15I3582.50553.03580.001,747.501,659.091,740.00D730474,865472,506518,525
20Jan-15I20582.50553.03580.0011,650.0011,060.6011,600.00E13449,71451,20455,270
21Jan-15B20582.50553.03580.0011,650.0011,060.6011,600.00F1,519429,446509,837474,195
22Jan-15F8296.50333.03392.502,372.002,664.243,140.00G893451,787472,937513,099
23Jan-15E6371.00363.03405.002,226.002,178.182,430.00H15087,37586,22697,000
24Jan-15D40650.50628.03652.5026,020.0025,121.2026,100.00I404235,001238,946259,320
25Jan-15C8682.00653.03580.005,456.005,224.244,640.00J7952,97555,83750,820
26Jan-15I2559.00578.03580.001,118.001,156.061,160.00K268135,072134,812161,704
27Jan-15I2559.00578.03580.001,118.001,156.061,160.00Grand Total7,8963,805,3013,901,8504,176,679
28Jan-15D4650.50628.03652.502,602.002,512.122,610.00
29Jan-15J8672.00653.03580.005,376.005,224.244,640.00
30Jan-15I10559.00578.03580.005,590.005,780.305,800.00
31Jan-15C10682.00653.03580.006,820.006,530.305,800.00
32Jan-15J6672.00653.03580.004,032.003,918.183,480.00
33Jan-15D40650.50628.03652.5026,020.0025,121.2026,100.00
34Jan-15E12371.00363.03405.004,452.004,356.364,860.00
35Jan-15F8296.50333.03392.502,372.002,664.243,140.00
36Jan-15B28582.50553.03580.0016,310.0015,484.8416,240.00
37Jan-15I15582.50555.64580.008,737.508,334.608,700.00
38Jan-15I17582.50555.64580.009,902.509,445.889,860.00
39Jan-15B40582.50553.03580.0023,300.0022,121.2023,200.00
40Jan-15K9504.00503.03528.004,536.004,527.274,752.00
41Jan-15B40582.50553.03580.0023,300.0022,121.2023,200.00
42Jan-15I24582.50553.03580.0013,980.0013,272.7213,920.00
43Jan-15G32505.92503.03487.0016,189.4416,096.9615,584.00
44Jan-15H32582.50555.64580.0018,640.0017,780.4818,560.00
45Jan-15G3505.92503.03487.001,517.761,509.091,461.00
46Jan-15G60505.92503.03487.0030,355.2030,181.8029,220.00
47Jan-15B8582.50553.03580.004,660.004,424.244,640.00
48Jan-15F15296.50333.03392.504,447.504,995.455,887.50
49Jan-15D67650.50630.64652.5043,583.5042,252.8843,717.50
50Jan-15D33650.50628.03652.5021,466.5020,724.9921,532.50
51Jan-15C12682.00653.03580.008,184.007,836.366,960.00
52Jan-15B5559.00546.18580.002,795.002,730.902,900.00
53Jan-15E6371.00363.03405.002,226.002,178.182,430.00
54Jan-15F37296.50335.64325.0010,970.5012,418.6812,025.00
55Jan-15F95296.50335.64325.0028,167.5031,885.8030,875.00
56Jan-15F10296.50335.64325.002,965.003,356.403,250.00
57Jan-15F8296.50333.03325.002,372.002,664.242,600.00
58Jan-15E11371.00400.64415.004,081.004,407.044,565.00
59Jan-15E17371.00365.64415.006,307.006,215.887,055.00
60Jan-15E22371.00363.03415.008,162.007,986.669,130.00
61Jan-15B15582.50635.64680.008,737.509,534.6010,200.00
62Jan-15B7582.50553.03680.004,077.503,871.214,760.00
63Jan-15B3582.50553.03680.001,747.501,659.092,040.00
64Jan-15B4582.50553.03680.002,330.002,212.122,720.00
65Jan-15B30582.50553.03680.0017,475.0016,590.9020,400.00
66Jan-15B42582.50553.03680.0024,465.0023,227.2628,560.00
67Jan-15H46582.50555.64680.0026,795.0025,559.4431,280.00
68Jan-15H4582.50555.64680.002,330.002,222.562,720.00
69Jan-15G130505.92505.64591.0065,769.6065,733.2076,830.00
70Jan-15G52505.92503.03591.0026,307.8426,157.5630,732.00
71Jan-15G18505.92503.03591.009,106.569,054.5410,638.00
72Jan-15I50582.50553.03680.0029,125.0027,651.5034,000.00
73Jan-15I75582.50555.64680.0043,687.5041,673.0051,000.00
74Jan-15G3505.92503.03591.001,517.761,509.091,773.00
75Jan-15G23505.92505.64591.0011,636.1611,629.7213,593.00
76Jan-15G157505.92505.64591.0079,429.4479,385.4892,787.00
77Jan-15G117505.92545.64591.0059,192.6463,839.8869,147.00
78Jan-15B6582.50555.64680.003,495.003,333.844,080.00
79Jan-15B18582.50555.64680.0010,485.0010,001.5212,240.00
80Jan-15D152650.50630.64758.0098,876.0095,857.28115,216.00
81Jan-15D23650.50710.64758.0014,961.5016,344.7217,434.00
82Jan-15F573296.50333.03325.00169,894.50190,826.19186,225.00
83Jan-15F127296.50335.64325.0037,655.5042,626.2841,275.00
84Feb-15A20582.50555.64580.0011,650.0011,112.8011,600.00
85Feb-15B1559.00546.18580.00559.00546.18580.00
86Feb-15C4682.00653.03580.002,728.002,612.122,320.00
87Feb-15C6682.00653.03580.004,092.003,918.183,480.00
88Feb-15D70650.50710.64652.5045,535.0049,744.8045,675.00
89Feb-15E8371.00400.64405.002,968.003,205.123,240.00
90Feb-15F12296.50335.64392.503,558.004,027.684,710.00
91Feb-15B10582.50635.64580.005,825.006,356.405,800.00
92Feb-15G44505.92545.64487.0022,260.4824,008.1621,428.00
93Feb-15I40582.50555.64580.0023,300.0022,225.6023,200.00
94Feb-15B80582.50553.03580.0046,600.0044,242.4046,400.00
95Feb-15B40582.50553.03580.0023,300.0022,121.2023,200.00
96Feb-15I16582.50553.03580.009,320.008,848.489,280.00
97Feb-15G22505.92505.64487.0011,130.2411,124.0810,714.00
98Feb-15H20582.50555.64580.0011,650.0011,112.8011,600.00
99Feb-15K9504.00503.03528.004,536.004,527.274,752.00
100Feb-15B20582.50555.64580.0011,650.0011,112.8011,600.00
101Feb-15F8296.50335.64392.502,372.002,685.123,140.00
102Feb-15E6371.00363.03405.002,226.002,178.182,430.00
103Feb-15D80650.50628.03652.5052,040.0050,242.4052,200.00
104Feb-15J1672.00653.03580.00672.00653.03580.00
105Feb-15J7672.00653.03580.004,704.004,571.214,060.00
106Feb-15C8682.00653.03580.005,456.005,224.244,640.00
107Feb-15I6559.00578.03580.003,354.003,468.183,480.00
108Feb-15K4504.00503.03528.002,016.002,012.122,112.00
109Feb-15F34296.50335.64325.0010,081.0011,411.7611,050.00
110Feb-15F16296.50335.64325.004,744.005,370.245,200.00
111Feb-15E50371.00400.64415.0018,550.0020,032.0020,750.00
112Feb-15D400650.50628.03758.00260,200.00251,212.00303,200.00
113Feb-15J17672.00655.64680.0011,424.0011,145.8811,560.00
114Feb-15J3672.00653.03680.002,016.001,959.092,040.00
115Feb-15C25682.00653.03680.0017,050.0016,325.7517,000.00
116Feb-15K20504.00503.03629.0010,080.0010,060.6012,580.00
117Feb-15K131504.00503.03629.0066,024.0065,896.9382,399.00
118Feb-15K49504.00503.03629.0024,696.0024,648.4730,821.00
119Feb-15B100582.50553.03680.0058,250.0055,303.0068,000.00
120Feb-15B56582.50553.03680.0032,620.0030,969.6838,080.00
121Feb-15B60582.50553.03680.0034,950.0033,181.8040,800.00
122Feb-15B17582.50553.03680.009,902.509,401.5111,560.00
123Feb-15B67582.50553.03680.0039,027.5037,053.0145,560.00
124Feb-15I23582.50555.64680.0013,397.5012,779.7215,640.00
125Feb-15I77582.50555.64680.0044,852.5042,784.2852,360.00
126Feb-15G123505.92545.64591.0062,228.1667,113.7272,693.00
127Feb-15G127505.92505.64591.0064,251.8464,216.2875,057.00
128Feb-15C25682.00653.03680.0017,050.0016,325.7517,000.00
129Feb-15A30582.50555.64680.0017,475.0016,669.2020,400.00
130Feb-15E36371.00363.03415.0013,356.0013,069.0814,940.00
131Feb-15E14371.00363.03415.005,194.005,082.425,810.00
132Feb-15F100296.50335.64325.0029,650.0033,564.0032,500.00
133Feb-15F335234.00335.64260.0078,390.00112,439.4087,100.00
134Feb-15A15582.50555.64680.008,737.508,334.6010,200.00
135Feb-15C6682.00653.03680.004,092.003,918.184,080.00
136Feb-15C9682.00653.03680.006,138.005,877.276,120.00
137Feb-15B22582.50635.64680.0012,815.0013,984.0814,960.00
138Feb-15B28582.50635.64680.0016,310.0017,797.9219,040.00
139Feb-15G41505.92545.64591.0020,742.7222,371.2424,231.00
140Feb-15G161505.92505.64591.0081,453.1281,408.0495,151.00
141Feb-15G252505.92545.64591.00127,491.84137,501.28148,932.00
142Feb-15G48505.92505.64591.0024,284.1624,270.7228,368.00
143Feb-15I17582.50553.03680.009,902.509,401.5111,560.00
144Feb-15I133582.50635.64680.0077,472.5084,540.1290,440.00
145Feb-15H94582.50555.64680.0054,755.0052,230.1663,920.00
146Feb-15H6582.50635.64680.003,495.003,813.844,080.00
147Feb-15B100582.50555.64680.0058,250.0055,564.0068,000.00
148Feb-15C15682.00653.03680.0010,230.009,795.4510,200.00
149Feb-15J6672.00655.64680.004,032.003,933.844,080.00
150Feb-15J24672.00750.64680.0016,128.0018,015.3616,320.00
151Feb-15F6296.50335.64325.001,779.002,013.841,950.00
152Feb-15F994296.50335.64325.00294,721.00333,626.16323,050.00
153Feb-15I24582.50635.64580.0013,980.0015,255.3613,920.00
154Feb-15G31505.92545.64487.0015,683.5216,914.8415,097.00
155Feb-15H16582.50635.64580.009,320.0010,170.249,280.00
156Feb-15H14582.50635.64580.008,155.008,898.968,120.00
157Feb-15K34504.00503.03528.0017,136.0017,103.0217,952.00
158Feb-15B20582.50555.64580.0011,650.0011,112.8011,600.00
159Feb-15F4296.50335.64392.501,186.001,342.561,570.00
160Feb-15A5582.50635.64580.002,912.503,178.202,900.00
161Feb-15A15582.50555.64580.008,737.508,334.608,700.00
162Feb-15B5550.00578.03580.002,750.002,890.152,900.00
163Feb-15C8682.00653.03580.005,456.005,224.244,640.00
164Feb-15D31650.50710.64652.5020,165.5022,029.8420,227.50
165Feb-15D69650.50710.64652.5044,884.5049,034.1645,022.50
166Feb-15E10371.00400.64405.003,710.004,006.404,050.00
167Feb-15F10296.50335.64392.502,965.003,356.403,925.00
168Feb-15B16582.50635.64580.009,320.0010,170.249,280.00
169Feb-15G44505.92545.64487.0022,260.4824,008.1621,428.00
170Feb-15I39582.50555.64580.0022,717.5021,669.9622,620.00
171Feb-15I21582.50635.64580.0012,232.5013,348.4412,180.00
172Feb-15B1582.50553.03580.00582.50553.03580.00
173Feb-15B69582.50553.03580.0040,192.5038,159.0740,020.00
174Feb-15K21504.00503.03528.0010,584.0010,563.6311,088.00
175Feb-15B36582.50553.03580.0020,970.0019,909.0820,880.00
176Feb-15E10371.00363.03405.003,710.003,630.304,050.00
177Feb-15D80650.50628.03652.5052,040.0050,242.4052,200.00
178Feb-15J20672.00750.64580.0013,440.0015,012.8011,600.00
179Feb-15C10682.00653.03580.006,820.006,530.305,800.00
180Feb-15I8559.00578.03580.004,472.004,624.244,640.00
181Feb-15J1559.00546.18580.00559.00546.18580.00
Sheet1
Cell Formulas
RangeFormula
G2:I181G2=$C2*D2
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
The pivot table isnt automatically updated. Every time you change the price, right click on the pivot & click Refresh.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,244
Members
452,622
Latest member
Laura_PinksBTHFT

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