+ Reply to Thread
Results 1 to 4 of 4

Weighted average that conditionally sums based on name and ignores #N/A

  1. #1
    Registered User
    Join Date
    01-20-2015
    Location
    United States
    MS-Off Ver
    2010
    Posts
    18

    Weighted average that conditionally sums based on name and ignores #N/A

    In this sheet, I have already set up column A to autofill each unique name from a list. For each of these names I set up an array to pick values from a data set based on the 2 possible names, "L09 Cracks" and "L10 Cracks" in column b and the headers in C through K. I need to weight average each column C through K for L09 Cracks and L10 Cracks divided by column M "chip weight". I tried IF(AB:AB="L09 Cracks",SUMPRODUCT(AC:AC,AN:AN)/SUM(AM:AM). I cannot get any kind of formula to work, either from N/A messing it up or it not reading the criteria correctly.pqm-example.xlsx

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Weighted average that conditionally sums based on name and ignores #N/A

    With sumproduct.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    01-20-2015
    Location
    United States
    MS-Off Ver
    2010
    Posts
    18

    Re: Weighted average that conditionally sums based on name and ignores #N/A

    So the columns in A and B are not consistent, right now there are three L09 Cracks and 4 L10 Cracks, but those change consistently, it could be 1 and 1 or 20 and 4, so that is why I cannot do a simple Sumproduct just on the rows they are on. Also it ignores the N/A problem

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Weighted average that conditionally sums based on name and ignores #N/A

    Replace the N/a with 0.

    Did you look at my answer in the file?

    It works with differant ranges.

+ 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 multiplication formula that ignores zeroes
    By anansi00 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-20-2014, 05:01 AM
  2. Weighted average based on various date ranges (SUMIFS or SUMPRODUCT)?
    By MajorMattMason in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 08-14-2014, 09:34 PM
  3. Calculate a weighted average based on text category
    By zbomb2000 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-27-2013, 10:07 PM
  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 - based on sales history...
    By mud_shark in forum Excel General
    Replies: 4
    Last Post: 01-12-2010, 04:16 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