+ Reply to Thread
Results 1 to 6 of 6

SUMIF with weighted average

  1. #1
    Forum Contributor
    Join Date
    05-19-2009
    Location
    Santiago, Chile
    MS-Off Ver
    Excel 2019
    Posts
    212

    SUMIF with weighted average

    I have a formula that calculates me the weighted average (=(L2*K2+(E3*F3))/K3)).
    Though I have a list as follow:
    Apples
    Apples
    Pears
    Oranges
    Lemons
    Pears
    Oranges
    etc.
    Now I want to calculate the weighted average of apples, pears, oranges etc separately. So, when I have a new "Pears" I want that it consider all the previous "Pears"and calculates weighted average without considering the other items. Likewise for Apples, Orange, etc.
    If I want to sum the values than I use the SUMIF but what should I use for another formula?

  2. #2
    Registered User
    Join Date
    08-28-2012
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: SUMIF with weighted average

    It helps much if you could post a sample sheet

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: SUMIF with weighted average

    take a look at this thread and see if you can adapt it to your needs?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    05-19-2009
    Location
    Santiago, Chile
    MS-Off Ver
    Excel 2019
    Posts
    212

    Re: SUMIF with weighted average

    Quote Originally Posted by prashantha View Post
    It helps much if you could post a sample sheet
    As requested see attachedWeighted average.xlsx

  5. #5
    Forum Contributor
    Join Date
    05-19-2009
    Location
    Santiago, Chile
    MS-Off Ver
    Excel 2019
    Posts
    212

    Re: SUMIF with weighted average

    Quote Originally Posted by FDibbins View Post
    take a look at this thread and see if you can adapt it to your needs?
    Sorry but I think the thread is missing here. I don't see any thread attached.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: SUMIF with weighted average


+ 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