Averageif MOD formula help needed

Superman01

New Member
Joined
Jul 26, 2017
Messages
1
Hi All,

Imagine Range(A1-H8) is a pivot.
I would like help with the formula down (column J) next to Pivot to see what the average sales of each customer is.

The problems I'm facing are::confused:

  • Include weeks which have zero data as long as they've had previous sales Cust 3.
  • the average only starts calculating when they start sales. ie comparing Cust 3 vs Cust 5.
  • Next week when I run data for week 3, I can just copy formula from Column J into column M and the formula will include week 3's data when I refresh the pivot.

Thanks in advance.

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]wk1[/TD]
[TD]wk1[/TD]
[TD]wk1 Total[/TD]
[TD]wk2[/TD]
[TD]wk2[/TD]
[TD]wk2 total[/TD]
[TD]Main total[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]activity 1[/TD]
[TD]activity 2[/TD]
[TD][/TD]
[TD]activity 1[/TD]
[TD]activity 2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Average Formula[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Cust1[/TD]
[TD]6[/TD]
[TD]6[/TD]
[TD]12[/TD]
[TD]7[/TD]
[TD]10[/TD]
[TD]17[/TD]
[TD]29[/TD]
[TD][/TD]
[TD]14.5[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Cust2[/TD]
[TD]9[/TD]
[TD]2[/TD]
[TD]11[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]5[/TD]
[TD]16[/TD]
[TD][/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Cust3[/TD]
[TD]4[/TD]
[TD]1[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]2.5[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Cust4[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]8[/TD]
[TD]9[/TD]
[TD]12[/TD]
[TD][/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Cust5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]8[/TD]
[TD]2[/TD]
[TD]10[/TD]
[TD]10[/TD]
[TD][/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Cust6[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]7[/TD]
[TD]3[/TD]
[TD]8[/TD]
[TD]11[/TD]
[TD]18[/TD]
[TD][/TD]
[TD]9[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,223,908
Messages
6,175,305
Members
452,633
Latest member
DougMo

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