+ Reply to Thread
Results 1 to 6 of 6

Weighted average per entity

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    27

    Weighted average per entity

    Hello,
    I browsed many conversations on weighted averages and did not find a solution to my problem. My apologizes if I jumped over it.

    Over 3 columns I got:
    col 1 = product (text) ; col 2 = price (number) ; col 3 = volume (number)

    For each product there can be many prices and different volumes.

    My goal is to calculate the weighted average for each product automatically.

    I know SUMPRODUCT(blabla)/sum(blabla) does weighted averages but I cannot find the syntax to do it on a per product base.

    I hope I am clear

    p.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Weighted average per entity

    Did you try to use AVERAGEIF function?

    =AVERAGEIF($A$2:$A$10,A2;$C$2:$C$10)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    04-09-2013
    Location
    Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Weighted average per entity

    Thanks for the quick reply.

    I just played with the averageif but if only gives me the average price. I need to weight it vs volumes sold. is there a way to use averageif with sumproduct, maybe ?

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Weighted average per entity

    Pls,attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  5. #5
    Valued Forum Contributor
    Join Date
    10-06-2008
    Location
    Norway
    MS-Off Ver
    2010
    Posts
    365

    Re: Weighted average per entity

    Hi, maybe: With Product in A2:A16, Price in Column B and Volume in column C
    In D1 and copy Down:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-09-2013
    Location
    Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Weighted average per entity

    Cool! Thank you estige, it works !

    And thanks to Fotis as well for the prompt help,

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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