subrahmanyam85
New Member
- Joined
- Aug 26, 2014
- Messages
- 20
Hi,
I have pivot table and have to show the data from into another sheet as Report format.
Format should not change.We are having only 4 categories.We have to show the catergory values as Header in Report (as shown below)
By using Excel macros once the pivot table get refresh I am bringing distinct values of Year,R_Year,Code,Currency in to Report sheet.
I have done the calculations by using SUMIFS.When the pivot table rows are increasing calculations are repeating and taking long time.
Can we do it without using SUMIFS?
Please suggest me the best way to achive it.Below is format of my data.
Pivot Table
==========
[TABLE="width: 423"]
<tbody>[TR]
[TD]Year[/TD]
[TD]R_Year[/TD]
[TD]Code[/TD]
[TD]Currency[/TD]
[TD]Category[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]1993[/TD]
[TD]RY-2011[/TD]
[TD]A1[/TD]
[TD]GBP[/TD]
[TD]Cat-1[/TD]
[TD="align: right"]-29.01[/TD]
[/TR]
[TR]
[TD]1993[/TD]
[TD]RY-2011[/TD]
[TD]A1[/TD]
[TD]GBP[/TD]
[TD]Cat-3[/TD]
[TD="align: right"]-45.24[/TD]
[/TR]
[TR]
[TD]1993[/TD]
[TD]RY-2011[/TD]
[TD]AG[/TD]
[TD]GBP[/TD]
[TD]Cat-2[/TD]
[TD="align: right"]-125.81[/TD]
[/TR]
[TR]
[TD]1993[/TD]
[TD]RY-2011[/TD]
[TD]AG[/TD]
[TD]AUD[/TD]
[TD]Cat-4[/TD]
[TD="align: right"]-7.91[/TD]
[/TR]
[TR]
[TD]1993[/TD]
[TD]RY-2012[/TD]
[TD]AH[/TD]
[TD]AUD[/TD]
[TD]Cat-4[/TD]
[TD="align: right"]1,568.01[/TD]
[/TR]
[TR]
[TD]1993[/TD]
[TD]RY-2012[/TD]
[TD]AH[/TD]
[TD]AUD[/TD]
[TD]Cat-1[/TD]
[TD="align: right"]223.93[/TD]
[/TR]
[TR]
[TD]1993[/TD]
[TD]RY-2012[/TD]
[TD]AG[/TD]
[TD]USD[/TD]
[TD]Cat-3[/TD]
[TD="align: right"]-196.26[/TD]
[/TR]
[TR]
[TD]1993[/TD]
[TD]RY-2012[/TD]
[TD]AG[/TD]
[TD]USD[/TD]
[TD]Cat-1[/TD]
[TD="align: right"]-12.34[/TD]
[/TR]
[TR]
[TD]1993[/TD]
[TD]RY-2013[/TD]
[TD]AG[/TD]
[TD]USD[/TD]
[TD]Cat-2[/TD]
[TD="align: right"]2,446.10[/TD]
[/TR]
</tbody><colgroup><col><col><col><col><col><col></colgroup>[/TABLE]
Report Layout
=========
[TABLE="width: 595"]
<tbody>[TR]
[TD]Year
[/TD]
[TD]R_Year
[/TD]
[TD]Code
[/TD]
[TD]Currency
[/TD]
[TD]Cat-1
[/TD]
[TD]Cat-2
[/TD]
[TD]Cat-3
[/TD]
[TD]Cat-4
[/TD]
[/TR]
[TR]
[TD]1993
[/TD]
[TD]RY-2011
[/TD]
[TD]A1
[/TD]
[TD]GBP
[/TD]
[TD]-29.01
[/TD]
[TD][/TD]
[TD]-45.24
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1993
[/TD]
[TD]RY-2011
[/TD]
[TD]AG
[/TD]
[TD]GBP
[/TD]
[TD][/TD]
[TD]-125.81
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1993
[/TD]
[TD]RY-2011
[/TD]
[TD]AG
[/TD]
[TD]AUD
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]-7.91
[/TD]
[/TR]
[TR]
[TD]1993
[/TD]
[TD]RY-2012
[/TD]
[TD]AH
[/TD]
[TD]AUD
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1,568.01
[/TD]
[/TR]
[TR]
[TD]1993
[/TD]
[TD]RY-2012
[/TD]
[TD]AG
[/TD]
[TD]USD
[/TD]
[TD]-12.34
[/TD]
[TD][/TD]
[TD]-196.26
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1993
[/TD]
[TD]RY-2013
[/TD]
[TD]AG
[/TD]
[TD]USD
[/TD]
[TD][/TD]
[TD]2,446.10
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have pivot table and have to show the data from into another sheet as Report format.
Format should not change.We are having only 4 categories.We have to show the catergory values as Header in Report (as shown below)
By using Excel macros once the pivot table get refresh I am bringing distinct values of Year,R_Year,Code,Currency in to Report sheet.
I have done the calculations by using SUMIFS.When the pivot table rows are increasing calculations are repeating and taking long time.
Can we do it without using SUMIFS?
Please suggest me the best way to achive it.Below is format of my data.
Pivot Table
==========
[TABLE="width: 423"]
<tbody>[TR]
[TD]Year[/TD]
[TD]R_Year[/TD]
[TD]Code[/TD]
[TD]Currency[/TD]
[TD]Category[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]1993[/TD]
[TD]RY-2011[/TD]
[TD]A1[/TD]
[TD]GBP[/TD]
[TD]Cat-1[/TD]
[TD="align: right"]-29.01[/TD]
[/TR]
[TR]
[TD]1993[/TD]
[TD]RY-2011[/TD]
[TD]A1[/TD]
[TD]GBP[/TD]
[TD]Cat-3[/TD]
[TD="align: right"]-45.24[/TD]
[/TR]
[TR]
[TD]1993[/TD]
[TD]RY-2011[/TD]
[TD]AG[/TD]
[TD]GBP[/TD]
[TD]Cat-2[/TD]
[TD="align: right"]-125.81[/TD]
[/TR]
[TR]
[TD]1993[/TD]
[TD]RY-2011[/TD]
[TD]AG[/TD]
[TD]AUD[/TD]
[TD]Cat-4[/TD]
[TD="align: right"]-7.91[/TD]
[/TR]
[TR]
[TD]1993[/TD]
[TD]RY-2012[/TD]
[TD]AH[/TD]
[TD]AUD[/TD]
[TD]Cat-4[/TD]
[TD="align: right"]1,568.01[/TD]
[/TR]
[TR]
[TD]1993[/TD]
[TD]RY-2012[/TD]
[TD]AH[/TD]
[TD]AUD[/TD]
[TD]Cat-1[/TD]
[TD="align: right"]223.93[/TD]
[/TR]
[TR]
[TD]1993[/TD]
[TD]RY-2012[/TD]
[TD]AG[/TD]
[TD]USD[/TD]
[TD]Cat-3[/TD]
[TD="align: right"]-196.26[/TD]
[/TR]
[TR]
[TD]1993[/TD]
[TD]RY-2012[/TD]
[TD]AG[/TD]
[TD]USD[/TD]
[TD]Cat-1[/TD]
[TD="align: right"]-12.34[/TD]
[/TR]
[TR]
[TD]1993[/TD]
[TD]RY-2013[/TD]
[TD]AG[/TD]
[TD]USD[/TD]
[TD]Cat-2[/TD]
[TD="align: right"]2,446.10[/TD]
[/TR]
</tbody><colgroup><col><col><col><col><col><col></colgroup>[/TABLE]
Report Layout
=========
[TABLE="width: 595"]
<tbody>[TR]
[TD]Year
[/TD]
[TD]R_Year
[/TD]
[TD]Code
[/TD]
[TD]Currency
[/TD]
[TD]Cat-1
[/TD]
[TD]Cat-2
[/TD]
[TD]Cat-3
[/TD]
[TD]Cat-4
[/TD]
[/TR]
[TR]
[TD]1993
[/TD]
[TD]RY-2011
[/TD]
[TD]A1
[/TD]
[TD]GBP
[/TD]
[TD]-29.01
[/TD]
[TD][/TD]
[TD]-45.24
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1993
[/TD]
[TD]RY-2011
[/TD]
[TD]AG
[/TD]
[TD]GBP
[/TD]
[TD][/TD]
[TD]-125.81
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1993
[/TD]
[TD]RY-2011
[/TD]
[TD]AG
[/TD]
[TD]AUD
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]-7.91
[/TD]
[/TR]
[TR]
[TD]1993
[/TD]
[TD]RY-2012
[/TD]
[TD]AH
[/TD]
[TD]AUD
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1,568.01
[/TD]
[/TR]
[TR]
[TD]1993
[/TD]
[TD]RY-2012
[/TD]
[TD]AG
[/TD]
[TD]USD
[/TD]
[TD]-12.34
[/TD]
[TD][/TD]
[TD]-196.26
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1993
[/TD]
[TD]RY-2013
[/TD]
[TD]AG
[/TD]
[TD]USD
[/TD]
[TD][/TD]
[TD]2,446.10
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]