+ Reply to Thread
Results 1 to 4 of 4

Need a SumIf (SumProduct?) that Ignors Zeros

  1. #1
    Registered User
    Join Date
    08-18-2009
    Location
    Cincinnati
    MS-Off Ver
    Excel 2007
    Posts
    96

    Need a SumIf (SumProduct?) that Ignors Zeros

    I am putting together average sell price weighted by quarter and year. My "sell prices" have $0 (and negatives) for some quarters.

    I'm looking for a sumifs or sumproduct formula that will ignore zeros.

    For instance if I'm weighting 10% 2013, 30% 2014, and 60% 2015 for $25, $35, $24 the formula is (25*10% + 35*30% + 24*60%) and I get a nice weighted average.

    But if there's a $0, it throws the formula off and the weighted average is bad.


    See attached (note: Much more data in real worksheet). And thank you in advance.
    Attached Files Attached Files
    Last edited by bluerog; 11-05-2015 at 03:23 PM.

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

    Re: Need a SumIf (SumProduct?) that Ignors Zeros

    what should be the result if of the values is 0?
    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
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,816

    Re: Need a SumIf (SumProduct?) that Ignors Zeros

    So, if a 60% (2015) is missing, as in your highlighted cells, do you want 2013 to be 25% and 2014 to be 75% ? And if 2013 and/or 2014 is missing, you want those %ages to be re-distributed ?

    Pete

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

    Re: Need a SumIf (SumProduct?) that Ignors Zeros

    See if the result in the tab pivot table. is the result is what you expect.

    See the attached file.

+ 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] Sumproduct or SumIf
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-05-2013, 08:38 AM
  2. Replies: 0
    Last Post: 08-17-2012, 02:02 PM
  3. Sumproduct for multiple arrays, ignoring zeros
    By snoproladd in forum Excel General
    Replies: 2
    Last Post: 02-21-2012, 04:46 PM
  4. sum? if? sumif? sumproduct?
    By melniks82 in forum Excel General
    Replies: 5
    Last Post: 06-23-2010, 10:19 AM
  5. Sumif function returns zeros
    By leeman57 in forum Excel General
    Replies: 1
    Last Post: 03-06-2009, 03:46 PM
  6. Sumif or Sumproduct? Maybe neither?
    By Steve in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-04-2006, 04:10 PM
  7. [SOLVED] Create template that ignors data list rules
    By Cmac via OfficeKB.com in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 11-05-2005, 02:10 AM
  8. sumif vs sumproduct
    By ww in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-04-2005, 10:06 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