+ Reply to Thread
Results 1 to 5 of 5

How to get weighted average from pivot table? SUMPRODUCT breaks when pivot table grows.

  1. #1
    Registered User
    Join Date
    08-14-2012
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2016
    Posts
    3

    How to get weighted average from pivot table? SUMPRODUCT breaks when pivot table grows.

    I have a pivot table that has DATE as the rows and TENURE as the columns. I need to get a weighted average of each date's tenures. So in the column just outside the pivot table I create a SUMPRODUCT formula for each row, something like...

    =SUMPRODUCT(E110:GI110,$E$109:$GI$109)/GJ110

    I then copy-paste this formula manually to the last row of the pivot table, which WILL be constant. This works great, until the next time I refresh the data and the pivot table grows horizontally (more tenure values) and has to replace the values/formulas in my SUMPRODUCT column. How (and where to put) a SUMPRODUCT formula that will recalculate (and NOT get destroyed) when refreshing the data? Is there a better way to get a weighted average (NOT straight average) for the rows in a pivot table?

    TIA. Dan

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: How to get weighted average from pivot table? SUMPRODUCT breaks when pivot table grow

    Hi,

    Can you not do it by adding a "Calculated Field" within the Pivot Table?

  3. #3
    Registered User
    Join Date
    08-14-2012
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2016
    Posts
    3

    Re: How to get weighted average from pivot table? SUMPRODUCT breaks when pivot table grow

    I've been trying numerous formulas to do this with no avail. Any suggestions?

  4. #4
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: How to get weighted average from pivot table? SUMPRODUCT breaks when pivot table grow

    Can you post a sample excel file here with enough data without any confidential/sensitive info?

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to get weighted average from pivot table? SUMPRODUCT breaks when pivot table grow

    meybe read this WV with PT

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Calculating A Weighted Average In a Pivot Table
    By Mvaldesi in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 07-26-2017, 11:11 AM
  2. Default Weighted Average in Pivot Table
    By Robert305 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-07-2015, 10:28 AM
  3. Weighted Average in a Pivot Table
    By Maverick 3672 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 04-24-2013, 08:51 AM
  4. [SOLVED] Weighted Average in Pivot Table
    By sinspawn56 in forum Excel General
    Replies: 2
    Last Post: 04-05-2012, 05:26 PM
  5. Weighted Average in a Pivot Table
    By rmikulas in forum Excel General
    Replies: 2
    Last Post: 07-14-2010, 05:08 PM
  6. making a weighted average in a pivot table
    By shadestreet in forum Excel General
    Replies: 1
    Last Post: 06-06-2008, 09:35 PM
  7. weighted average in pivot table
    By nasser in forum Excel General
    Replies: 3
    Last Post: 01-18-2006, 12:40 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1