VBA Help- Create Pivot exclude few Columns

Mallesh23

Well-known Member
Joined
Feb 4, 2009
Messages
983
Office Version
  1. 2010
Platform
  1. Windows
Hi Team,

Need your help to Create Pivot Table and it should Exclude 10-30 Bucket Column value.
Attached are sample input data and Below is expected Output.

In output i Dont want to show 10-30 Bucket Column. Expected >30days Columns.

and 0 value in blank space.

Overdue Payment_MRL_17.10.2020.xlsb
IJK
1Dummy Data
2RegionOutstanding AmountAgeing Bucket
3West1,418.34>1 Year
4North14,307.02>1 Year
5West97,405.99>1 Year
6West4,638.94121-365 Days
7South2,565.82121-365 Days
8West112.25121-365 Days
9South4,233.61121-365 Days
10South2,138.1891-120 Days
11West1,988.5291-120 Days
12South2,138.1891-120 Days
13North2,87,846.8461-90 Days
14South55,592.8761-90 Days
15South1,41,456.5931-60 Days
16South67,288.8231-60 Days
17South10,690.9431-60 Days
18South2,12,585.5131-60 Days
19South1,13,780.8731-60 Days
20South1,32,455.9831-60 Days
21South65,257.5031-60 Days
22South4,58,147.9131-60 Days
23South8,85,636.5731-60 Days
24South16,089.8831-60 Days
25South53,476.0931-60 Days
26South26,764.2231-60 Days
27South18,168.4931-60 Days
28South7,668.5231-60 Days
29South14,448.8331-60 Days
30South34,866.6031-60 Days
31South73,868.0731-60 Days
32South30,485.2531-60 Days
33South41,267.0131-60 Days
34South2,54,678.0131-60 Days
35South1,00,436.4031-60 Days
36South5,419.3431-60 Days
37South1,08,725.9831-60 Days
38West21,606.4031-60 Days
39West32,190.4431-60 Days
40West1,165.3231-60 Days
41West2,13,460.3331-60 Days
42West13,230.0031-60 Days
43West21,460.5631-60 Days
44South25,850.6831-60 Days
45South1,99,965.1431-60 Days
46South13,186.3831-60 Days
47South34,624.3831-60 Days
48West4,32,043.6631-60 Days
49North13,31,690.1131-60 Days
50North3,14,506.0531-60 Days
51West19,799.6231-60 Days
52South35,194.5731-60 Days
53South81,623.1231-60 Days
54South3,964.5531-60 Days
55South4,083.9531-60 Days
56North3,271.4331-60 Days
57North16,592.3231-60 Days
58North6,90,558.4031-60 Days
59North57,722.5131-60 Days
60South8,809.3331-60 Days
61South1,935.0631-60 Days
62South27,090.8331-60 Days
63South1,97,630.9031-60 Days
64South5,901.4031-60 Days
65West11,137.6131-60 Days
66West12,581.9831-60 Days
67South2,81,947.8431-60 Days
68South50,811.0531-60 Days
69West1,35,263.3531-60 Days
70West63,883.4831-60 Days
71West8,708.9531-60 Days
72South8,580.5631-60 Days
73South2,03,119.5531-60 Days
74South791.7231-60 Days
75South2,12,753.9431-60 Days
76South4,60,884.8131-60 Days
77South1,56,085.2431-60 Days
78South957.5631-60 Days
79North2,00,370.8231-60 Days
80South2,94,815.3831-60 Days
81South11,043.7731-60 Days
82South26,758.0931-60 Days
83South7,175.4431-60 Days
84North5,976.5631-60 Days
85North15,427.4131-60 Days
86North17,474.1631-60 Days
87North15,427.4131-60 Days
88North6,619.9631-60 Days
89North92,128.7131-60 Days
90North27,116.9631-60 Days
91North20,472.3031-60 Days
92South97,221.5231-60 Days
93South21,380.0831-60 Days
94South8,919.0131-60 Days
95South11,854.1231-60 Days
96South3,487.5331-60 Days
97South7,425.0931-60 Days
98South45,919.6031-60 Days
99South5,423.4031-60 Days
100South64,246.8831-60 Days
101North2,375.1631-60 Days
102North2,375.1631-60 Days
103North65,831.2331-60 Days
104North1,15,465.9331-60 Days
105North1,841.1631-60 Days
106North10,057.0331-60 Days
107North5,841.6231-60 Days
108North12,507.0831-60 Days
109North1,583.4431-60 Days
110North15,299.5131-60 Days
111North1,04,999.5731-60 Days
112South46,854.1431-60 Days
113South12,767.4331-60 Days
114South1,990.0131-60 Days
115South12,261.0031-60 Days
116South8,180.1531-60 Days
117South8,901.5431-60 Days
118South1,226.8131-60 Days
119South11,361.0431-60 Days
120South9,992.8431-60 Days
121South9,992.8431-60 Days
122South1,983.7731-60 Days
123South1,983.7731-60 Days
124West33,744.1631-60 Days
125West18,420.8331-60 Days
126East2,22,302.3131-60 Days
127East2,04,078.2631-60 Days
128East82,595.9531-60 Days
129East10,48,121.0031-60 Days
130East2,19,652.2431-60 Days
131South6,799.2831-60 Days
132South4,505.2831-60 Days
133South3,05,540.1131-60 Days
134South36,592.8231-60 Days
135South16,792.0531-60 Days
136South24,560.3231-60 Days
137South14,243.1831-60 Days
138South3,14,059.2831-60 Days
139South5,59,695.0131-60 Days
140South40,293.4931-60 Days
141South4,236.7931-60 Days
142South9,576.8831-60 Days
143West53,303.0531-60 Days
144West10,805.9431-60 Days
145West5,206.4731-60 Days
146West11,137.6331-60 Days
147West8,798.6331-60 Days
148West11,135.5531-60 Days
149West13,459.8831-60 Days
150West1,45,527.7631-60 Days
151West33,673.5331-60 Days
152West9,824.4531-60 Days
153South40,408.9931-60 Days
154South9,824.4531-60 Days
155South95,702.1731-60 Days
156South25,987.7731-60 Days
157South1,66,233.0231-60 Days
158South38,101.5531-60 Days
159North14,643.3131-60 Days
160North59,220.0431-60 Days
161North22,360.8331-60 Days
162North86,106.5531-60 Days
163North3,63,912.0231-60 Days
164North9,576.8831-60 Days
165West16,649.3631-60 Days
166West2,482.1731-60 Days
167East4,407.9731-60 Days
168East6,90,969.5631-60 Days
169East4,407.9731-60 Days
170East1,390.8531-60 Days
171East18,068.7231-60 Days
172South20,898.6131-60 Days
173South6,387.2731-60 Days
174South22,332.3031-60 Days
175South1,41,447.3731-60 Days
176South3,166.0131-60 Days
177South1,936.5131-60 Days
178South7,23,127.3731-60 Days
179South1,983.7731-60 Days
180South3,193.6431-60 Days
181South15,898.6531-60 Days
182West53,816.4331-60 Days
183West3,680.4331-60 Days
184West3,680.4331-60 Days
185West2,910.1231-60 Days
186West7,360.8831-60 Days
187West791.7231-60 Days
188West5,542.0531-60 Days
189West2,375.1631-60 Days
190West3,166.8931-60 Days
191West2,375.1631-60 Days
192West1,66,480.7631-60 Days
193West1,676.1731-60 Days
194West7,125.5031-60 Days
195West5,542.0531-60 Days
196South1,21,483.7931-60 Days
197South23,805.1831-60 Days
198South1,936.5131-60 Days
199South3,352.3231-60 Days
200South15,085.5331-60 Days
201South3,352.3231-60 Days
202North4,386.5531-60 Days
203North13,038.4731-60 Days
204North2,482.1631-60 Days
205North32,353.6531-60 Days
206North5,82,982.2131-60 Days
207North4,761.0231-60 Days
208North3,156.1931-60 Days
209North3,155.7131-60 Days
210East50,148.5331-60 Days
211East4,172.5931-60 Days
212East87,243.3831-60 Days
213South14,563.9131-60 Days
214South1,74,608.1831-60 Days
215South16,048.4531-60 Days
216South19,390.7131-60 Days
217South8,928.0931-60 Days
218South86,395.1731-60 Days
219South29,229.2031-60 Days
220South79,986.5031-60 Days
221South38,833.3131-60 Days
222South1,03,799.4831-60 Days
223South22,772.6631-60 Days
224South56,169.5431-60 Days
225South67,322.7231-60 Days
226South52,861.7531-60 Days
227South52,861.7531-60 Days
228South2,44,026.1931-60 Days
229South1,52,601.2931-60 Days
230South1,05,747.9431-60 Days
231South1,04,101.4331-60 Days
232South1,02,345.4231-60 Days
233South5,20,148.0731-60 Days
234South2,08,529.9931-60 Days
235South44,721.5131-60 Days
236South4,653.7231-60 Days
237South3,487.5331-60 Days
238South4,236.7931-60 Days
239South1,88,641.1731-60 Days
240South2,67,197.6531-60 Days
241South24,140.7931-60 Days
242South1,29,168.1231-60 Days
243South5,437.2031-60 Days
244South22,681.7931-60 Days
245South41,340.7731-60 Days
246South25,677.5131-60 Days
247South30,812.9931-60 Days
248South3,973.7831-60 Days
249South3,27,010.0431-60 Days
250South9,201.1131-60 Days
251South1,07,688.5731-60 Days
252South52,724.4531-60 Days
253South5,135.5131-60 Days
254South21,890.0731-60 Days
255South1,02,742.6231-60 Days
256South1,32,525.8631-60 Days
257South1,990.0131-60 Days
258South3,967.5231-60 Days
259South16,048.4531-60 Days
260South46,647.4531-60 Days
261South11,611.9531-60 Days
262South9,686.1331-60 Days
263South2,36,797.8331-60 Days
264South35,109.6931-60 Days
265South46,970.2231-60 Days
266South43,932.6031-60 Days
267South40,249.5231-60 Days
268South7,161.1631-60 Days
269South8,887.2531-60 Days
270South4,722.5231-60 Days
271South5,20,488.1631-60 Days
272South2,24,492.6631-60 Days
273South75,383.0631-60 Days
274South9,479.2931-60 Days
275South8,387.9831-60 Days
276South29,653.6031-60 Days
277South6,590.5531-60 Days
278South92,052.6131-60 Days
279South4,464.0631-60 Days
280South2,91,180.9731-60 Days
281South11,041.3031-60 Days
282South3,680.4331-60 Days
283South1,11,461.7431-60 Days
284South83,879.8331-60 Days
285South19,258.1331-60 Days
286North1,91,021.4916-30 Days
287North9,576.8816-30 Days
288North55,600.9516-30 Days
289North2,74,192.8716-30 Days
290North5,97,001.8116-30 Days
291North2,87,436.0316-30 Days
292North5,670.4616-30 Days
293North22,564.1116-30 Days
294North1,13,582.5916-30 Days
295North19,153.7616-30 Days
296North58,309.3216-30 Days
297South1,44,425.1716-30 Days
298South14,563.9116-30 Days
299South33,673.5316-30 Days
300South8,387.9816-30 Days
301South70,104.5316-30 Days
302North66,247.9416-30 Days
303North38,345.0716-30 Days
304North4,793.1116-30 Days
305North2,396.5616-30 Days
306North3,680.4316-30 Days
307South1,10,277.7116-30 Days
308South30,085.4616-30 Days
309South68,281.6116-30 Days
310South2,17,113.9216-30 Days
311South5,35,558.7916-30 Days
312West32,868.5616-30 Days
313East1,16,999.8916-30 Days
314East50,174.2016-30 Days
315East6,804.5316-30 Days
316East26,347.6116-30 Days
317East4,22,766.0316-30 Days
318East46,310.3016-30 Days
319East6,804.5316-30 Days
320East85,388.4016-30 Days
321East7,425.0916-30 Days
322East12,581.9816-30 Days
323West62,119.0616-30 Days
324West3,423.6716-30 Days
325West35,884.3116-30 Days
326West46,647.4516-30 Days
327West29,357.9416-30 Days
328West7,425.0916-30 Days
329West51,297.6616-30 Days
330West2,332.3816-30 Days
331West45,110.3516-30 Days
332West29,935.6716-30 Days
333West3,967.5216-30 Days
334East5,54,167.5816-30 Days
335East9,682.5716-30 Days
336East41,711.6616-30 Days
337East22,467.8116-30 Days
338East1,74,949.3416-30 Days
339East2,42,053.2016-30 Days
340West1,65,706.1916-30 Days
341West76,690.1116-30 Days
342West6,419.3816-30 Days
343West36,248.0716-30 Days
344West16,861.5416-30 Days
345West8,815.9416-30 Days
346West49,594.1316-30 Days
347West18,430.7416-30 Days
348West26,362.2416-30 Days
349West3,316.6816-30 Days
350West3,193.6416-30 Days
351West2,125.5116-30 Days
352North3,19,789.9316-30 Days
353North40,121.0916-30 Days
354North9,576.8816-30 Days
355North56,251.5716-30 Days
356North29,691.3516-30 Days
357North6,419.3716-30 Days
358North1,77,271.0216-30 Days
359North35,948.4916-30 Days
360North88,672.9816-30 Days
361North4,579.1616-30 Days
362North2,89,032.7916-30 Days
363North16,270.1816-30 Days
364North1,67,314.6416-30 Days
365North27,803.8316-30 Days
366North16,134.0416-30 Days
367North8,473.5616-30 Days
368West16,857.9916-30 Days
369North7,489.2716-30 Days
370North20,242.4316-30 Days
371North5,549.2016-30 Days
372North12,881.5316-30 Days
373North11,447.8816-30 Days
374North4,750.3316-30 Days
375North1,24,388.5416-30 Days
376North32,353.6516-30 Days
377North61,647.3816-30 Days
378North21,569.0916-30 Days
379North94,739.2516-30 Days
380North24,179.6216-30 Days
381North4,750.3316-30 Days
382West14,202.5216-30 Days
383West1,840.2316-30 Days
384West1,198.3016-30 Days
385North7,48,499.0816-30 Days
386North90,101.8416-30 Days
387North3,380.8716-30 Days
388North3,73,886.5016-30 Days
389North19,109.6216-30 Days
390West57,288.6016-30 Days
391West4,193.9916-30 Days
392East94,985.3316-30 Days
393East16,519.1816-30 Days
394West1,49,694.9316-30 Days
395West1,36,906.3816-30 Days
396West8,430.7816-30 Days
397West16,048.4516-30 Days
398West4,236.7916-30 Days
399North5,423.4016-30 Days
400North4,236.8016-30 Days
401North25,342.2516-30 Days
402North31,096.4916-30 Days
403North1,19,446.8116-30 Days
404North57,435.5616-30 Days
405North1,40,215.1816-30 Days
406North58,159.5316-30 Days
407North75,263.6116-30 Days
408North2,96,874.2116-30 Days
409North21,283.7716-30 Days
410North22,082.6616-30 Days
411North13,181.1116-30 Days
412North19,472.1116-30 Days
413West20,707.8216-30 Days
414West2,845.9216-30 Days
415North3,19,834.6316-30 Days
416North2,58,657.9816-30 Days
417North31,840.0916-30 Days
418North2,76,033.0816-30 Days
419North39,800.1216-30 Days
420West11,447.8716-30 Days
421West6,419.3816-30 Days
422West7,189.7116-30 Days
423West19,172.5416-30 Days
424West7,249.6016-30 Days
425North1,23,256.2916-30 Days
Sheet1




I Dont Want Bucket 16-30 days Column in Pivot.


Overdue Payment_MRL_17.10.2020.xlsb
ABCDEFGH
2Sum of Outstanding AmountColumn Labels
3Row Labels>1 Year121-365 Days91-120 Days61-90 Days31-60 Days16-30 DaysGrand Total
4East2637559.331938139.234575698.56
5North14307.02287846.844355667.596642826.3511300647.8
6South6799.434276.3655592.8714266798.751232472.6115565940.02
7West98824.334751.191988.521627224.861250065.632982854.53
8Grand Total113131.3511550.626264.88343439.7122887250.5311063503.8234425140.91
9
10
11
12
13Expected Below Output
14
15Sum of Outstanding AmountColumn Labels
16Row Labels>1 Year121-365 Days91-120 Days61-90 Days31-60 DaysGrand Total
17East2637559.332637559.33
18North14307.02287846.844355667.594657821.45
19South6799.434276.3655592.8714266798.7514333467.41
20West98824.334751.191988.521627224.861732788.9
21Grand Total113131.3511550.626264.88343439.7122887250.5323361637.09
Sheet1
Cell Formulas
RangeFormula
G17:G21G17=SUM(B17:F17)



Thanks
mg
 
Last edited:

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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