+ Reply to Thread
Results 1 to 3 of 3

Weighted Average in a Pivot Table

  1. #1
    Registered User
    Join Date
    07-07-2010
    Location
    Roanoke, VA
    MS-Off Ver
    Excel 2007
    Posts
    24

    Question Weighted Average in a Pivot Table

    Hi all!!

    I just previously asked a question about Pivot Tables, but completely forgot to ask about weighted averages.

    I have data that comes from our customers on how they rate our Technicians in certain areas after they come out to their home. (scale 1-10)

    I have a pivot table with the averages of their scores in each section.

    But the problem is that it should be a weighted average, meaning every score that is a 6 or below counts as a 0. so 1-6=0, 7=7, 8=8, 9=9, 10=10.

    Any ideas on how to put a weighted average into a pivot table?

    We could go thru and replaced all the 1-6's with 0s, but we need to maintain the raw data, and there is A LOT of data to go thru.

    Thank you all for your help in advance, you guys are always so helpful!!

    Attached is an example document.
    Attached Files Attached Files
    Last edited by rmikulas; 07-14-2010 at 05:09 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Weighted Average in a Pivot Table

    My suggestion would be to create an adjacent table that deals with the issue in the raw data, so in H3 enter formula:

    =IF(C3=""," ",IF(C3<=6,0,C3)) and copy across 5 columns and down the list

    Put Headings in H2 to L2.

    Redo a Pivot table using these values now.

    To hide any Div/0 errors that appear, Go to Table Options and check the For error values, show checkbox and leave the box blank.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    07-07-2010
    Location
    Roanoke, VA
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Weighted Average in a Pivot Table

    Thank you for your help! I used your formulas and just created a whole new sheet that referenced from the raw data but now with weighted values, and its great that your formula keeps the blanks and creates 0s where needed. Because when I was trying to use a formula similar to yours it would fill the blanks with 0s and i didn't want that.
    Thanks again!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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