+ Reply to Thread
Results 1 to 14 of 14

Weighted average based on several criteria

  1. #1
    Registered User
    Join Date
    01-02-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    95

    Weighted average based on several criteria

    I need to be able to get the weighted average based on a date range and advisor. AVERAGE PER ADVISOR(Q1) BASED ON A DATE RANGE AND COUNT OF RESPONSES (Q1) PERO AGENT BASED ON A DATE RANGE AS WELL.
    Attached Files Attached Files

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Weighted average based on several criteria

    Try

    B4=AVERAGEIFS(Raw!$I$2:$I$2185,Raw!$C$2:$C$2185,">="&$B$1,Raw!$C$2:$C$2185,"<="&$C$1,Raw!$J$2:$J$2185,calculate!$A4)

    And drag down.
    Last edited by shukla.ankur281190; 05-27-2016 at 01:10 AM.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    01-02-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    95

    Re: Weighted average based on several criteria

    Thanks but I think the formula is only getting the straight average based on a date range. What we are trying to get is the weighted average.

    Number of responses (Q1 count)based on advisor and date range
    Scores (Q1) based on advisor and date range

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Weighted average based on several criteria

    Did you check properly post no #3 ....

  5. #5
    Registered User
    Join Date
    01-02-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    95

    Re: Weighted average based on several criteria

    Quote Originally Posted by shukla.ankur281190 View Post
    Did you check properly post no #3 ....
    I dont get it. Sorry whAT? can you repost the syntax

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Weighted average based on several criteria

    Check the attached file....
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-02-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    95

    Re: Weighted average based on several criteria

    Looked at it and its still the straight average. I think the formula should be combination of sumproduct and sum i just dont know how to use it with criterias,

  8. #8
    Registered User
    Join Date
    01-02-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    95

    Re: Weighted average based on several criteria

    Quote Originally Posted by shukla.ankur281190 View Post
    Check the attached file....
    Looked at it and its still the straight average. I think the formula should be combination of sumproduct and sum i just dont know how to use it with criterias,

  9. #9
    Registered User
    Join Date
    01-02-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    95

    Re: Weighted average based on several criteria

    Quote Originally Posted by shukla.ankur281190 View Post
    Check the attached file....
    Looked at it and its still the straight average. I think the formula should be combination of sumproduct and sum i just dont know how to use it with criterias,

  10. #10
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Weighted average based on several criteria

    What is your expected result can you please explain???

  11. #11
    Registered User
    Join Date
    01-02-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    95

    Re: Weighted average based on several criteria

    weighted average means one piece of data multiplied by some factor then divide by the number of data points. However, you don't mention what you want to use for a weighting factor.

    the weighting factor is the count of responses (q1) based on date range and advisor multiplied by the sumproduct of q1 based on advisor and date range and the count of responses(q1)

  12. #12
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Weighted average based on several criteria

    Try

    B4=AVERAGEIFS(Raw!$I$2:$I$2185,Raw!$C$2:$C$2185,">="&$B$1,Raw!$C$2:$C$2185,"<="&$C$1,Raw!$J$2:$J$2185,calculate!$A4)

    check the attcahment.

    If it is not what you are looking for then please put expected result in excel file.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    01-02-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    95

    Re: Weighted average based on several criteria

    The attachment now has the overall weighted average. THis is the syntax that I need to use but I need to do this per advisor. i added a new column for volume(count) which is needed to calculate the weighted average.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    01-02-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    95

    Re: Weighted average based on several criteria

    =SUMPRODUCT(q1 score, q1 count)/SUM(q1 count)

    Criteria = date range, advisor

    Were trying to get the weighted average of each advisor

+ 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. Weighted Average with Criteria
    By Leopold2000 in forum Excel General
    Replies: 7
    Last Post: 06-06-2018, 12:24 AM
  2. [SOLVED] Weighted Average with Two Criteria
    By nadrojylloh in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-25-2014, 05:45 PM
  3. Weighted Average with 2 criteria
    By Leopold2000 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-05-2013, 03:36 AM
  4. [SOLVED] Calculate a weighted average in a single cell based on multiple criteria
    By _Bryan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-14-2013, 04:38 PM
  5. Weighted Average with 2 Criteria
    By Leopold2000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-11-2013, 04:49 PM
  6. Weighted Average with criteria
    By Larko in forum Excel General
    Replies: 2
    Last Post: 11-10-2010, 12:03 PM
  7. Weighted average with criteria
    By TheGame0135 in forum Excel General
    Replies: 11
    Last Post: 07-01-2010, 01:16 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