+ Reply to Thread
Results 1 to 4 of 4

Weighted Average Problem?

  1. #1
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    104

    Weighted Average Problem?

    Hi Forum,

    I have posted this in Excel New Users/Basic Forum. So far did not receive a response. As I have to deliver the results of this tomorrow early morning to my boss, I am posting this in “Excel Formulas & Functions” forum too. Sorry about that.

    In the attached, I have 3 source tables, called Table 1, Table 2 and Table 3.

    Problem:
    Using these 3 tables, I have to calculate the summary table indicated in multi-colours to answer below two questions:

    1). When intervention = 1, then what is the weighted avg of “Bad Rate #” across three source tables ? 0.18%

    2). When “Bad Rate #” across three source tables is highest for intervention 1, then what is the value of “# of people” ? 75

    Question:
    I have tried below sumproduct function with an added “if” phrase like below to give a condition to restrict for a chosen intervention at a time but gives an error

    =sumproductif(B3:O3,B7:O7,J15)/SUM(B3:O3)

    I have calculated the weighted avg in colum “L” but it is very clumsy to manually restricting for interventions given the large number of source tables.

    Could anyone help me how to create a look up function to answer the above 2questions.
    Thank you for your expertise.

    Mirisage
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Weighted Average Problem?

    First, you have to clear away the text labels in I3:I8 and M3:M8
    (these are redundant labels anyway, and they get in the way of the formula calcs)

    Then place in L15:
    =SUMPRODUCT(($B$9:$N$9=J15)*($B$7:$N$7*$B$3:$N$3))/SUMPRODUCT(($B$9:$N$9=J15)*($B$3:$N$3))
    Copy down to L19 to return Weighted Avg of "Bad Rate #" for the Intevention in J15:J19

    Put in M15, then array enter the formula, ie press CTRL+SHIFT+ENTER (instead of just pressing ENTER):
    =INDEX($B$3:$N$3,MATCH(MAX(IF($B$9:$N$9=J15,$B$7:$N$7)),IF($B$9:$N$9=J15,$B$7:$N$7),0))
    Copy down to M19 to return # of people when "Bad Rate #" is highest for the Intevention in J15:J19
    ----------------------------------
    Success? Wave it, hit the little star at the bottom left of my responses
    Last edited by Max, Singapore; 12-03-2013 at 01:50 AM.

  3. #3
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    104

    Re: Weighted Average Problem?

    Hi Max, Singapore,
    Your code is nothing but great!
    I will try to learn the logic later. Now I focus on deleivery of output.
    Thanks again!
    Mirisage

  4. #4
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Weighted Average Problem?

    welcome, glad it worked out ok

+ 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. Tough Inventory Weighted Average Price Problem, Please Help!
    By 1337 Ninja in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-14-2013, 10:15 PM
  2. Problem calculating weighted average using MMULT formula
    By _hs_ in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-18-2013, 06:08 AM
  3. weighted average problem
    By arnab0711 in forum Excel General
    Replies: 1
    Last Post: 04-27-2012, 03:57 AM
  4. weighted average problem, using sum product
    By brotherwo in forum Excel General
    Replies: 8
    Last Post: 10-28-2010, 02:40 PM
  5. [SOLVED] What is this kind of average called?-weighted average
    By havocdragon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-24-2005, 01:05 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