+ Reply to Thread
Results 1 to 6 of 6

Weighted Averages

  1. #1
    Registered User
    Join Date
    05-16-2019
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    54

    Weighted Averages

    I currently have an Excel file (see attached) with the following

    one sheet containing every single transaction of items i.e.
    one sheet with a Pivot Table



    A - B - C
    PART01 - 1 - 5.78
    PART01 - 1 - 5.78
    PART01 - 1 - 5.78
    PART01 - 1 - 5.78
    PART01 - 1 - 5.78
    PART01 - 1 - 7.58
    PART01 - 1 - 7.58


    Doing an average of Column C weights it accordingly and gives me a value of 6.29. This is great because it's taking into account the many orders of 5.78 each.


    ...and what I'm looking to achieve is by using a Pivot Table I can see a list of all the items sold, how many were sold and the average price which is weighted accordingly.
    So using the sample data in the Excel file it would look like this

    avg.PNG

    Appreciate any help
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    05-16-2019
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    54

    Re: Weighted Averages

    see below, duplicate post
    Last edited by Steve1977; 05-21-2021 at 12:08 PM.

  3. #3
    Registered User
    Join Date
    05-16-2019
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    54

    Re: Weighted Averages

    I'm getting there with this but a problem arises if a particular item has sold more than 1, in these instances it's taking the Total Value, rather than acknowledging that it's 2 instances of a number.

    i.e. if a £5 part has sold twice, it's thinking the part is individually £10 as opposed to two instances of 5 and so it's knocking out the weighted formula and skewing it.

    Info is in the Excel file
    Attached Files Attached Files
    Last edited by Steve1977; 05-21-2021 at 12:10 PM.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Weighted Averages

    Perhaps a calculated field will do what you want.
    1. Select cell B17
    2. From the Analyze subtab of the PivotTable Tools tab select Fields, Items & Sets
    3. Select Calculated Field
    4. Paste this formula in the Formula window: =Total /Qty
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    05-16-2019
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    54

    Re: Weighted Averages

    Hi JeteMc, thank you for taking the time to reply and yes indeed your method worked brilliantly. It just so happened I did figure it out myself with the Formula you mentioned (hence my late reply), but your method builds it into the Pivot Table, which will prove really useful going forward

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Weighted Averages

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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. Replies: 4
    Last Post: 07-19-2019, 04:47 PM
  2. Help with weighted averages...
    By LMTPRO in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-04-2018, 10:15 PM
  3. Sum.if + weighted averages
    By Cgrenha in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-27-2015, 06:37 AM
  4. weighted averages
    By runner in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-22-2013, 11:45 AM
  5. Weighted Averages
    By par0016 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-08-2013, 08:34 PM
  6. Weighted Averages Help
    By FCHunter82 in forum Excel General
    Replies: 4
    Last Post: 12-27-2010, 03:38 PM
  7. Weighted Averages
    By H57 in forum Excel General
    Replies: 2
    Last Post: 12-08-2010, 08:42 AM

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