+ Reply to Thread
Results 1 to 4 of 4

Sumproduct given a condition

  1. #1
    Forum Contributor
    Join Date
    07-29-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    365
    Posts
    255

    Sumproduct given a condition

    Hi there, sheet attached.

    I am trying to arrive at the results in the yellow cells without needing the blue cells inbetween.

    A sumproduct would be best but the 2nd row of blue cells has an if statement in it.

    MQ
    Attached Files Attached Files
    Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.

  2. #2
    Registered User
    Join Date
    04-06-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Sumproduct given a condition

    =sumproduct(c3:l3,c5:l5)

    =sumproduct((c2:l2*c3:l3)*(c5:l5<>0))
    Last edited by 8Jinx; 04-07-2014 at 11:55 PM.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,368

    Re: Sumproduct given a condition

    Hi pickslides,

    See the attached for some yellow formulas.

    Charley Kyd did a great job explaining SumProduct for me at http://exceluser.com/formulas/sumproduct_12.htm .
    Attached Files Attached Files
    Last edited by MarvinP; 04-08-2014 at 12:02 AM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Sumproduct given a condition

    For the 1st 1...
    =SUMPRODUCT((C3:L3)*(C5:L5))
    for the 2nd...
    =SUMPRODUCT((C2:L2)*(C3:L3)*(C5:L5>0))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Replies: 1
    Last Post: 05-19-2012, 02:54 AM
  2. sumproduct with condition
    By fabdav in forum Excel General
    Replies: 2
    Last Post: 01-18-2012, 06:35 PM
  3. Sumproduct with if and or condition
    By Diddy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-19-2011, 02:27 PM
  4. more condition with sumproduct?
    By danusko in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-03-2009, 06:39 AM
  5. sumproduct with condition
    By r4hm4t in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-20-2006, 02:08 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