% of row total of the running total in pivot table

zuriqi

Board Regular
Joined
Dec 8, 2008
Messages
79
Hi

Is it possible to do the following in pivot table?


  1. Do running total
  2. % of row total based on the values of the running total in point 1

[TABLE="class: outer_border, width: 500, align: center"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]Total[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]3[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]1[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]

Running total

[TABLE="class: outer_border, width: 500, align: center"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]Total[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]5[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]6[/TD]
[TD]14[/TD]
[/TR]
</tbody>[/TABLE]

% of row total

[TABLE="class: outer_border, width: 500, align: center"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]Total[/TD]
[/TR]
[TR]
[TD]33%[/TD]
[TD]67%[/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD]44%[/TD]
[TD]56%[/TD]
[TD]100%[/TD]
[/TR]
[TR]
[TD]57%[/TD]
[TD]43%[/TD]
[TD]100%[/TD]
[/TR]
</tbody>[/TABLE]

so is there a way to achieve point 2 using calculated field or directly or any other way other than formula?
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
is there a way to achieve point 2 using calculated field or directly or any other way other than formula?

I don't think there's a running % of total by row pt setting, but if you're willing to bend the last requirement:



Excel 2010
ABCDEFGH
1NameGroupNumberrunningSum of runningColumn Labels
2EA11Row LabelsAB
3EB22E33.33%66.67%
4QA34Q44.44%55.56%
5QB35W57.14%42.86%
6WA48
7WB16
Sheet3
Cell Formulas
RangeFormula
D2=SUMIF($B$2:$B2,B2,$C$2:$C$7)
 
Upvote 0
I don't think there's a running % of total by row pt setting, but if you're willing to bend the last requirement:


Excel 2010
ABCDEFGH
NameGroupNumberrunningSum of runningColumn Labels
EARow LabelsAB
EBE
QAQ
QBW
WA
WB

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: right"][/TD]

[TD="align: right"][/TD]

[TD="align: center"]2[/TD]

[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"][/TD]

[TD="align: center"]3[/TD]

[TD="align: right"]2[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"][/TD]

[TD="align: right"]33.33%[/TD]
[TD="align: right"]66.67%[/TD]

[TD="align: center"]4[/TD]

[TD="align: right"]3[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"][/TD]

[TD="align: right"]44.44%[/TD]
[TD="align: right"]55.56%[/TD]

[TD="align: center"]5[/TD]

[TD="align: right"]3[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]

[TD="align: right"]57.14%[/TD]
[TD="align: right"]42.86%[/TD]

[TD="align: center"]6[/TD]

[TD="align: right"]4[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]7[/TD]

[TD="align: right"]1[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

</tbody>
Sheet3

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]D2[/TH]
[TD="align: left"]=SUMIF($B$2:$B2,B2,$C$2:$C$7)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

Thanks for the reply , However, i know how to get this by formula , but i was wondering if this can be done by pivot table settings to avoid additional formulas and dynamic range setting, Thanks again for your reply
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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