+ Reply to Thread
Results 1 to 6 of 6

Omit blank cells from a multiple sumproduct

  1. #1
    Registered User
    Join Date
    10-02-2012
    Location
    Brisbane
    MS-Off Ver
    Excel 2007
    Posts
    3

    Omit blank cells from a multiple sumproduct

    Hi guys,

    Getting very frustrated with this I'm trying to avoid my weighted averages being affected by blank cells in the Moisture column.

    Under Equals i have a straight sumproduct =sumproduct(moisture,density,thickness/sumproduct(density,thickness))

    =SUMPRODUCT(AP676:AP685,$AJ676:$AJ685,$O676:$O685/SUMPRODUCT($AJ676:$AJ685,$O676:$O685))

    Thickness Density Moisture
    0.74 1.39 36.5
    0.20 2.47
    0.20 2.76
    0.31 1.72 22.1
    0.38 2.26
    0.44 1.42 31.0
    0.28 2.64
    0.41 1.42 29.9
    0.20 2.46
    0.20 2.17

    Obviously the sumproduct moisture values weighted against both density and thickness keep coming out far to low as the blanks are being included as a zero i presume.

    Any help would be great many thanks

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Omit blank cells from a multiple sumproduct

    Hi zmfb039,

    Welcome to the forum.

    What should be the correct answer as per your calculation?
    Can you upload a sample workbook.. ? thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    10-02-2012
    Location
    Brisbane
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Omit blank cells from a multiple sumproduct

    Hi DILIPandey,

    Thanks for your response. I have uploaded a file, the only way i can see to counteract the blank cells is to delete lines which are not relevant to avoid an anomalous weighted average.

    This is only a snippet of my data and if i can avoid filtering and segregating out relevant data for the sake of a weighted average i would be pretty happy.

    I'm a bit of a novice at all this... appreciate the help.

    Many thanks
    Attached Files Attached Files

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Omit blank cells from a multiple sumproduct

    Hi zmfb039,

    Try using below array formula:-

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Enter this using key combination Ctrl Shift Enter


    See attached:- Sumproduct Issues.xlsx

    regards,
    DILIPandey

    <click on below 'star' if this helps>

  5. #5
    Registered User
    Join Date
    10-02-2012
    Location
    Brisbane
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Omit blank cells from a multiple sumproduct

    That works perfectly. Thanks so much for your help, much appreciated.

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Omit blank cells from a multiple sumproduct

    You are welcome zmfb039.. cheers

    Suggest you to mark this thread as [SOLVED].. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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