+ Reply to Thread
Results 1 to 5 of 5

want to sumdivided instead of sumproduct that contains blanks.

  1. #1
    Registered User
    Join Date
    07-16-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    36

    want to sumdivided instead of sumproduct that contains blanks.

    Hi

    As you can see in the attached file I have a problem where I have
    A column that I need to be able to choose wheter the row is interesting or not.
    Two columns that I need to sum up the divided product.

    Had it been that I needed to sum the product I could have used a sumproduct. The same for summing up divided products unless as in my case now where I have blank cells, giving me #DIV/0!
    Anyone know of any way to work around that problem?

    Formula how it looks right now not working: =SUMPRODUCT(N(A:A="a");B:B;1/C:C)
    Attached Files Attached Files
    Last edited by Jowel; 07-16-2013 at 04:01 AM.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: want to sumdivided instead of sumproduct that contains blanks.

    Use this array formula

    =SUMPRODUCT(--($A$2:$A$9="a"),IFERROR($B$2:$B$9/$C$2:$C$9,0))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    07-16-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: want to sumdivided instead of sumproduct that contains blanks.

    Thank you very much. Both for the fast answear and how much easier you just made my life.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: want to sumdivided instead of sumproduct that contains blanks.

    Hi,

    Why not use a helper column
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and sum that?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Registered User
    Join Date
    07-16-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: want to sumdivided instead of sumproduct that contains blanks.

    Actually that could have worked to for the problem I wrote.
    I did a simplyfied version of the problem here, where I am using it I got a few more factors that matter but those I could handle if I got help with this part as i thankfully did.

+ 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 counting blanks
    By yenaled in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-30-2013, 03:03 AM
  2. sumproduct issue with blanks
    By jw01 in forum Excel General
    Replies: 3
    Last Post: 10-19-2012, 09:15 AM
  3. SUMPRODUCT Help with Blanks
    By MIVELD in forum Excel General
    Replies: 5
    Last Post: 09-29-2008, 12:55 PM
  4. Sumproduct with blanks
    By Blondegirl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-30-2007, 05:21 AM
  5. [SOLVED] Sumproduct - Blanks
    By wal50 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-28-2006, 11:55 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