Excel pivot table - average of calculated sums

前端 未结 5 2053
逝去的感伤
逝去的感伤 2021-02-20 03:32

I\'m sure this is simple, but how do I get a pivot table to display an average for a calculated sum of fields? In the simplified example, I\'ve filtered out fund x1, and the pi

5条回答
  •  北恋
    北恋 (楼主)
    2021-02-20 04:16

    I would add a helper column in column D to count unique customers.

    1. Sort your data by person
    2. In column D2 put =IF(A2=A1, 1, 0) and call the column UniqueCust
    3. Copy formula down your dataset for all rows
    4. Add the column to your pivot
    5. Create a formula in your pivot table called Avg per Cust =Value/UniqueCust

    This will flag each row in your data with a 1 if it is the first time a name appears in the column or zero otherwise. The pivot table calculation will sum up the total value and divide by the total unique customers.

提交回复
热议问题