Formula for subtotal with conditions, in Pivot with Calculation - Fields (Pivot - Analyze - Calculation - Fields - subtotal by condition IF or SUMIF)

newton_iss

New Member
Joined
May 29, 2018
Messages
2
This is Pivot table. Field1 is counted as Bottle price / Volume. But Subtotal for Field 1 is wrong.

21,2654321 is wrong answer, watching data, we understand that price of Bottle per Lt is 65.
For some reason, Field 1 is taking all volume.

Perfect Formula would look like this: IFERROR('Bottle Price'/SUMIF(Pack;"Bottle";Volume);0), but it doesent work in calculated fields formela.


BrandPackSKUSum of Volume ltSum of Bottle PriceSum of CAN priceSum of Field1Sum of Field2
BudBottle51000650000650
BudBottle31060689000650
BudBottle11120728000650
BudBottle Total31802067000650
BudKeg510200000
BudKeg310800000
BudKeg111400000
BudKeg Total32400000
BudCAN51040091520088
BudCAN31100096800088
BudCAN111600102080088
BudCAN Total33000290400088
Bud Total972020670029040021,265432129,87654321
Corona ExtraBottleDark1180767000650
Corona ExtraBottleLight1220793000650
Corona ExtraBottle Total24001560000650
Corona ExtraCANDark12000105600088
Corona ExtraCANLight12400109120088
Corona ExtraCAN Total24400214720088
Corona Extra Total484015600021472032,2314049644,36363636
Grand Total1456036270050512024,9107142934,69230769

<colgroup><col><col><col><col><col><col><col span="2"></colgroup><tbody>
</tbody>
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,214,990
Messages
6,122,625
Members
449,093
Latest member
catterz66

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