+ Reply to Thread
Results 1 to 5 of 5

Problems with a SUMPRODUCT formula

  1. #1
    Registered User
    Join Date
    12-20-2013
    Location
    London, England
    MS-Off Ver
    Office 2013
    Posts
    2

    Problems with a SUMPRODUCT formula

    Hello,

    I apologise in advance for what is probably quite a simple problem, but any help is appreciated.

    I have 2 arrays of data which I'd like to use (B3:B136 & H3:H136), my goal is to do the sumproduct of these 2 arrays IF the figure in H is >0.

    Heres a small example:

    £20 -1
    £15 0
    £10 1
    £5 2

    I would want the result to be £20 (10*1 + 5*2).

    Many thanks

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Problems with a SUMPRODUCT formula

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



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    12-20-2013
    Location
    London, England
    MS-Off Ver
    Office 2013
    Posts
    2

    Re: Problems with a SUMPRODUCT formula

    Worked a treat, thanks!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Problems with a SUMPRODUCT formula

    You're welcome. Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Problems with a SUMPRODUCT formula

    Like this...

    =SUMPRODUCT(--(H3:H136>0),H3:H136,B3:B136)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. sumproduct formula problems
    By fabrecass in forum Excel General
    Replies: 17
    Last Post: 02-23-2012, 12:08 PM
  2. SUMPRODUCT problems
    By eric_t_viking in forum Excel General
    Replies: 3
    Last Post: 05-28-2009, 02:20 PM
  3. Sumproduct problems
    By shaunburke in forum Excel General
    Replies: 2
    Last Post: 08-15-2008, 11:19 AM
  4. SUMPRODUCT Problems
    By SamuelT in forum Excel General
    Replies: 5
    Last Post: 03-28-2008, 08:35 AM
  5. Problems with sumproduct
    By Rob_T in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-26-2006, 06:47 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