+ Reply to Thread
Results 1 to 2 of 2

Weighted Average Pivot Table Sub Groups

  1. #1
    Registered User
    Join Date
    08-31-2011
    Location
    New York, New York
    MS-Off Ver
    Excel 2003
    Posts
    51

    Weighted Average Pivot Table Sub Groups

    Hey everyone,

    I have a table of data and in it one column has a balance amount in dollars, and another column has an interest rate as a percentage. I have created a pivot table that has various subgroups and I want to have the pivot table calculate the weighted average interest rate by subgroup.

    The weight would be based on the dollar figure, so if for example, one subgroup had 2 line items and one item had a balance of $100,000 with an interest rate of 10%, and the other item had a balance of $1,000 and with interest rate of 40%, the weighted average for the subgroup would be 10.297%. It would do this for each of say 10 subgroups.

    Any help would be much appreciated.

  2. #2
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Weighted Average Pivot Table Sub Groups

    Hi Cheeseburger,

    I don't think this can be done within the pivot table itself, rather with a formula elsewhere.

    Assuming you have these values in 3 columns, Sub Group, Balance, Interest Rate(Value) you could use this formula:

    I've assumed that Sub Group is in A, Balance is in B and Interest Rate(Value) is in C

    Please Login or Register  to view this content.
    You can then attach this formula (tweaked to suit your table) next to the pivot table to display the figures as you require.

    As the pivot table will change you can apply an IF statement to the start so your weighted average is only applied once per sub group.

    If you need anymore help I'd suggest you upload a sample worksheet with an example of your required output.

    Regards

    Dave
    Last edited by PFDave; 10-25-2016 at 03:54 AM.

+ 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. Default Weighted Average in Pivot Table
    By Robert305 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-07-2015, 10:28 AM
  2. weighted average % calculation in pivot table
    By maymano in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-28-2013, 10:33 PM
  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. weighted average calculation in pivot table
    By carlossaltz in forum Excel General
    Replies: 0
    Last Post: 06-06-2008, 08:13 PM
  7. weighted average in pivot table
    By nasser in forum Excel General
    Replies: 3
    Last Post: 01-18-2006, 12:40 PM

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