You are on page 1of 16

Data

Rep Product Sum - Units Sum - Total Calculated Fields


Andrews 592 5474.19 RepBonus =Total * 3%
Binder 158 788.42 Bonus =IF(Units>100,Total*3%
Desk 11 3025
Pen 56 111.44
Pen Set 226 1127.74
Pencil 141 421.59
Gill 343 2267.6
Binder 213 1062.87
Desk 3 825
Pencil 127 379.73
Howard 597 3025.06
Binder 153 763.47
Desk 3 825
Pen 160 318.4
Pen Set 139 693.61
Pencil 142 424.58
Jardine 661 2289.39
Binder 28 139.72
Pen 151 300.49
Pen Set 204 1017.96
Pencil 278 831.22
Parent 423 3394.83
Binder 141 703.59
Desk 6 1650
Pen 56 111.44
Pen Set 136 678.64
Pencil 84 251.16
Sorvino 334 2882.72
Binder 93 464.07
Desk 6 1650
Pen 76 151.24
Pen Set 71 354.29
Pencil 88 263.12
Total Result 2950 19333.79
=Total * 3%
=IF(Units>100,Total*3%,0)
Problem with Totals for Bonus calculated field Workarounds #1 and #2
Bonus =IF(Units>100,Total*3%,0) 1. Filter the product field for Units > 100,
Andrews total is 164.23 instead of 70.13 to match the Bonus calculation
Excel uses same calculation 2. Or, turn off subtotals for the Rep field,
in Total and Subtotal, to eliminate the incorrect amounts.
instead of summing

Values Values
Row Labels Units Total Bonus Row Labels Units Total Bonus
Andrews 592 5,474.19 164.23 Andrews 525 2,337.75 70.13
Binder 158 788.42 23.65 Binder 158 788.42 23.65
Desk 11 3,025.00 0.00 Pen Set 226 1,127.74 33.83
Pen 56 111.44 0.00 Pencil 141 421.59 12.65
Pen Set 226 1,127.74 33.83 Gill 340 1,442.60 43.28
Pencil 141 421.59 12.65 Binder 213 1,062.87 31.89
Gill 343 2,267.60 68.03 Pencil 127 379.73 11.39
Binder 213 1,062.87 31.89 Grand Total 865 3,780.35 113.41
Desk 3 825.00 0.00
Pencil 127 379.73 11.39
Grand Total 935 7,741.79 232.25

www.contextures.com
http://www.contextures.com/excel-pivot-table-calculated-field.html
Workaround #3
Calculate Bonus in column
adjacent to pivot table
-- only works if pivot table layout will not change
NOTE: Changed to Outline Layout
Columns P, R and S could be hidden
Conditional formatting in column Q to match pivot table style

Values
Rep Product Units Total Sum of Bonus Bonus
Andrews 592 5,474.19 164.23 70.13 1 -
Binder 158 788.42 23.65 23.65 1 23.65
Desk 11 3,025.00 0.00 - 1 -
Pen 56 111.44 0.00 - 1 -
Pen Set 226 1,127.74 33.83 33.83 1 33.83
Pencil 141 421.59 12.65 12.65 1 12.65
Gill 343 2,267.60 68.03 43.28 2 -
Binder 213 1,062.87 31.89 31.89 2 31.89
Desk 3 825.00 0.00 - 2 -
Pencil 127 379.73 11.39 11.39 2 11.39
Grand Total 935 7,741.79 232.25 113.41 3 -
Rep - all -

Sum - Units Region


Order Status Central East West Total Result
Canceled 88 60 174 322
Total Result 88 60 174 322
Data
Rep Product Sum - Units Sum - Total
Andrews 592 5474.19
Binder 158 788.42
Desk 11 3025
Pen 56 111.44
Pen Set 226 1127.74
Pencil 141 421.59
Gill 343 2267.6
Binder 213 1062.87
Desk 3 825
Pencil 127 379.73
Howard 597 3025.06
Binder 153 763.47
Desk 3 825
Pen 160 318.4
Pen Set 139 693.61
Pencil 142 424.58
Jardine 661 2289.39
Binder 28 139.72
Pen 151 300.49
Pen Set 204 1017.96
Pencil 278 831.22
Parent 423 3394.83
Binder 141 703.59
Desk 6 1650
Pen 56 111.44
Pen Set 136 678.64
Pencil 84 251.16
Sorvino 334 2882.72
Binder 93 464.07
Desk 6 1650
Pen 76 151.24
Pen Set 71 354.29
Pencil 88 263.12
Total Result 2950 19333.79
Date Rep Region Order Stat Product Cost Units Total
1/1/2015 Jardine Central Shipped Pencil 2.99 36 107.64
1/2/2015 Howard East Shipped Pencil 2.99 95 284.05
1/3/2015 Andrews West Shipped Binder 4.99 50 249.5
1/4/2015 Howard East Shipped Binder 4.99 60 299.4
1/7/2015 Andrews West Shipped Binder 4.99 27 134.73
1/8/2015 Sorvino West Shipped Pencil 2.99 56 167.44
1/9/2015 Jardine Central Shipped Pencil 2.99 90 269.1
1/10/2015 Andrews West Shipped Pencil 2.99 75 224.25
1/11/2015 Sorvino West Canceled Pencil 2.99 32 95.68
1/14/2015 Jardine Central Shipped Pen 1.99 74 147.26
1/15/2015 Howard East Canceled Binder 4.99 60 299.4
1/16/2015 Andrews West Shipped Desk 275 2 550
1/17/2015 Jardine Central Pending Pencil 2.99 90 269.1
1/18/2015 Howard East Pending Binder 4.99 29 144.71
1/21/2015 Parent East Pending Desk 275 1 275
1/22/2015 Jardine Central Canceled Pencil 2.99 20 59.8
1/23/2015 Howard East Backorder Pencil 2.99 35 104.65
1/24/2015 Andrews West Backorder Binder 4.99 81 404.19
1/25/2015 Gill Central Shipped Desk 275 2 550
1/28/2015 Howard East Backorder Desk 275 3 825
1/29/2015 Andrews West Canceled Pen 1.99 56 111.44
1/30/2015 Jardine Central Shipped Binder 4.99 28 139.72
1/31/2015 Howard East Backorder Pencil 2.99 12 35.88
2/1/2015 Howard East Shipped Pen Set 4.99 16 79.84
2/4/2015 Howard East Shipped Pen Set 4.99 48 239.52
2/5/2015 Howard East Pending Pen 1.99 64 127.36
2/6/2015 Parent East Pending Pen 1.99 15 29.85
2/7/2015 Parent East Pending Binder 4.99 71 354.29
2/8/2015 Andrews West Shipped Pen Set 4.99 96 479.04
2/11/2015 Sorvino West Shipped Desk 275 2 550
2/12/2015 Gill Central Canceled Pencil 2.99 67 200.33
2/13/2015 Parent East Shipped Pen Set 4.99 74 369.26
2/14/2015 Andrews West Shipped Desk 275 5 1375
2/15/2015 Gill Central Backorder Binder 4.99 46 229.54
2/18/2015 Jardine Central Pending Pen Set 4.99 99 494.01
2/19/2015 Parent East Shipped Pen 1.99 41 81.59
2/20/2015 Gill Central Canceled Desk 275 1 275
2/21/2015 Gill Central Shipped Binder 4.99 87 434.13
2/22/2015 Andrews West Pending Pen Set 4.99 62 309.38
2/25/2015 Howard East Shipped Binder 4.99 4 19.96
2/26/2015 Sorvino West Shipped Binder 4.99 7 34.93
2/27/2015 Sorvino West Canceled Binder 4.99 86 429.14
2/28/2015 Jardine Central Shipped Pen Set 4.99 50 249.5
3/1/2015 Howard East Backorder Pen Set 4.99 75 374.25
3/4/2015 Andrews West Pending Pencil 2.99 66 197.34
3/5/2015 Gill Central Pending Pencil 2.99 53 158.47
3/6/2015 Gill Central Shipped Binder 4.99 80 399.2
3/7/2015 Howard East Shipped Pen 1.99 96 191.04
3/8/2015 Parent East Backorder Pen Set 4.99 62 309.38
3/11/2015 Andrews West Pending Pen Set 4.99 68 339.32
3/12/2015 Sorvino West Backorder Desk 275 2 550
3/13/2015 Jardine Central Pending Pen Set 4.99 55 274.45
3/14/2015 Parent East Shipped Pencil 2.99 16 47.84
3/15/2015 Parent East Pending Pencil 2.99 68 203.32
3/18/2015 Parent East Backorder Desk 275 5 1375
3/19/2015 Sorvino West Shipped Desk 275 2 550
3/20/2015 Sorvino West Shipped Pen Set 4.99 42 209.58
3/21/2015 Gill Central Shipped Pencil 2.99 7 20.93
3/22/2015 Parent East Backorder Binder 4.99 70 349.3
3/25/2015 Andrews West Pending Desk 275 4 1100
3/26/2015 Jardine Central Backorder Pencil 2.99 42 125.58
3/27/2015 Sorvino West Shipped Pen Set 4.99 29 144.71
3/28/2015 Sorvino West Shipped Pen 1.99 76 151.24
3/29/2015 Jardine Central Shipped Pen 1.99 77 153.23
Imprumut 100000
Durata 180
Rata 0%
Plata lunara $555.56
Credit 6734.262
Rata dob 6.50%
Scadenta 7
Rata de ramburs ($100.00)
Scenario Summary
Current Values: 60% la pret cel mai mare 70% la pret cel mai mare
Changing Cells:
$C$4 70% 60% 70%
Result Cells:
$D$10 0 0 0
Notes: Current Values column represents values of changing cells at
time Scenario Summary Report was created. Changing cells for each
scenario are highlighted in gray.
nr calc % la pret cel mai mare
500 70%
nr ca calc pret unitar
1000
35000% 700
15000%

245000
nr total de cart % la pret cel mai mare
100 60%

nr de cart pret unitar


cel mai mare pret 60 50
cel mai mic pret 40 20

profit total 3800

3800 50 60 70 3800
60% 3800 4400 5000 60% 3800
70% 4100 4800 5500 70% 4100
80% 4400 5200 6000 80% 4400
90% 4700 5600 6500 90% 4700
100% 5000 6000 7000 100% 5000
profit unitar 100 300 50
resurse folosite

capital 300 1200 120 0 0


depozitare 0.5 1 0.5 0 0
bucati 0 0 0
0 0 0

0
Chart Title
cost unitar client 1 client 2 client 3
fabrica 1 40 47 80
fabrica 2 72 36 58
fabrica 3 24 61 71

transport client 1 client 2 client 3 Total 1 Oferta


fabrica 1 0 100 0 100 = 100
fabrica 2 0 100 100 200 = 200
fabrica 3 200 0 100 300 = 300

Total 2 200 200 200


= = = Cost prod
Cerere 200 200 200 26000

You might also like