+ Reply to Thread
Results 1 to 5 of 5

SUMIF? or SUMPRODUCT???? or Something else??

  1. #1
    Registered User
    Join Date
    12-04-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    41

    Lightbulb SUMIF? or SUMPRODUCT???? or Something else??

    Can anybody help me with this please:

    I want to be able to calculate the total sum of column 'X' if column 'M' says 'Bound' and if column 'O' has a value greater than 0.

    I have tried I few things including the below, however i cannot get it to work. If somebody could help me asap that would be much appreciated!

    =SUMPRODUCT((M11:M25="Bound")+(O11:O25<0))*(X11:X25)

    Thanks

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: SUMIF? or SUMPRODUCT???? or Something else??

    sumproduct(--(m1:m100="bound"),--(O1:O100>0),(X1:X100))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: SUMIF? or SUMPRODUCT???? or Something else??

    To clarify - in SUMPRODUCT (and Arrays) + equates to OR as * equates to AND.

    For more info. on Sumproduct see the link in my sig. to Bob Phillips' white paper.

  4. #4
    Registered User
    Join Date
    12-04-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: SUMIF? or SUMPRODUCT???? or Something else??

    Thanks guys!!

    This seems to be working now. This is my first post on the forum and something that I have been trying to do for hours has been resolved in minutes!

    Thanks again

  5. #5
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: SUMIF? or SUMPRODUCT???? or Something else??

    That's because this forum is full of teh ossim.

    Please mark your thread as solved!
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

+ 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