Calculated field in pivottable

T3Romeo

New Member
Joined
Aug 27, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I am looking for a way to make an extra calculated field in a pivot table. This is for a monthly report I need to make. (every month I need to pay someone for the activities he did. Therefore, I created a table and from that table a pivot table (and I want to make a chart from that later)
Now my question. I would like to put a third column in the pivot, in that column the amount I need to pay.
I can make it with a formula next to the pivot like =IF(A3="Cleaning";B3*150;IF(A3="Driving";B3*100;B3*50)) but than it is not in the pivot, and that is what i need.

Can somebody help me out?

Example.xlsx
ABCDEFGHIJ
1
2ActivityCountsCosts per service
3Cleaning6Cleaning€ 150.00
4Driving20Driving€ 100.00
5Walking3Walking€ 50.00
6Running12Running€ 50.00
7Singing9Singing€ 50.00
8
9
10TO PAY
11Row LabelsSum of Counts
12Cleaning6
13Driving20
14Running12
15Singing9
16Walking3
17Grand Total50
18
Sheet1
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
It would be much easier to use a VLookup to add the rate / cost to the underlying table and then pivot it. See XL2BB below.

A standard pivot table can't do what you want. So otherwise you would either need to load it into the data model and use Power Pivot or else use Power Pivot.

Book1
ABCDEFGHIJK
1
2ActivityCountsRateCostCosts per service
3Cleaning6150900Cleaning150
4Driving201002000Driving100
5Walking350150Walking50
6Running1250600Running50
7Singing950450Singing50
8
9
10Row LabelsSum of CountsSum of Cost
11Cleaning6900
12Driving202,000
13Running12600
14Singing9450
15Walking3150
16Grand Total504,100
17
Sheet1
Cell Formulas
RangeFormula
D3:D7D3=VLOOKUP([@Activity],$H$3:$I$7,2,FALSE)
E3:E7E3=[@Counts]*[@Rate]
 
Upvote 0

Forum statistics

Threads
1,217,337
Messages
6,135,969
Members
449,974
Latest member
riffburn

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