+ Reply to Thread
Results 1 to 7 of 7

calculate weighted average while ignoring null values (without using sumproduct)

  1. #1
    Registered User
    Join Date
    12-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    60

    calculate weighted average while ignoring null values (without using sumproduct)

    I need a formula that can be used calculate a weighted average without using SUMPRODUCT (it . I've been banging my head all night, and feel that there's undoubtedly a way to utilize the ratio between the weights to calculate these values - but I am stuck.

    Any help would be appreciated, and I've attached a sample.

    Here's an image for those that don't want to download the image. TXgFBLR.png
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: calculate weighted average while ignoring null values (without using sumproduct)

    d5=SUMPRODUCT((D$2:D$4)*($B$2:$B$4/SUMIF(D$2:D$4,"<>",$B$2:$B$4)))
    Try this and copy towards Right
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: calculate weighted average while ignoring null values (without using sumproduct)

    Quote Originally Posted by justinhampton81 View Post
    ......without using SUMPRODUCT......
    Is there a reason why you don't want to use SUMPRODUCT?
    Audere est facere

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: calculate weighted average while ignoring null values (without using sumproduct)

    are you ok with helper columns.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  5. #5
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: calculate weighted average while ignoring null values (without using sumproduct)

    SUMPRODUCT is likely your best bet, its a very powerful function.

    Alternatively, an average is just SUM/COUNT, so you could also weigh the sum and count only the non-blanks in a column.

  6. #6
    Registered User
    Join Date
    12-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    60
    Quote Originally Posted by kvsrinivasamurthy View Post
    are you ok with helper columns.
    Helper columns would be fine!

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: calculate weighted average while ignoring null values (without using sumproduct)

    Pl see File.

    J to N are Helper columns.

    In J2, then drag upto N3

    =$B2*D2

    In J7, then drag upto N7

    =SUM(J2:J4)/SUMIF(D2:D4,"<>",$B$2:$B$4)
    Attached Files Attached Files

+ 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. [SOLVED] Using Sumproduct to calculate weighted average
    By Excel15 in forum Excel General
    Replies: 3
    Last Post: 03-11-2015, 10:33 AM
  2. Replies: 6
    Last Post: 11-25-2013, 08:35 PM
  3. Replies: 0
    Last Post: 07-15-2013, 12:00 PM
  4. [SOLVED] Help with IF and SUMPRODUCT to calculate weighted average??
    By consulttk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-02-2012, 03:56 PM
  5. SUMPRODUCT Issue - Need to calculate weighted average of multiple ranges
    By arcobalt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-01-2012, 04:55 PM
  6. Conditional weighted average ignoring #N/A values
    By syoung27 in forum Excel General
    Replies: 4
    Last Post: 02-22-2012, 10:48 AM
  7. Calculate weighted average with missing values
    By Deiseman in forum Excel General
    Replies: 9
    Last Post: 06-08-2010, 10:03 AM

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