Calculated Field with Formula in Pivot Table in Excel

NNOG28

New Member
Joined
Feb 28, 2019
Messages
11
Hi all Excel Experts,

I would like to create a calculated field in Pivot Table by using formula to calculate the average of the latest 3 weeks sales/ Retail Price. I do not want to manual change the formula each week to calculate the latest 3 weeks I update weekly

Could you please advise how to do it? TIA

Ie. below is the example of Pivot table data
ItemSum of WK1 SalesSum of WK2 salesWK3 salesAvg. L3W Sales (calculated filed in pivot table)
A500400450483
B100100100100
C300600900600
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi, it might be easier to just extract the averaged sales with formulae outside of a Pivot Table.
Given in A1:
1580085258695.png

with
Rich (BB code):
=AVERAGEIFS($C$2:$C$13,$B$2:$B$13,">="&TODAY()-21,$A$2:$A$13,F2)
1580085280825.png
 
Upvote 0

Forum statistics

Threads
1,215,455
Messages
6,124,935
Members
449,195
Latest member
Stevenciu

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