+ Reply to Thread
Results 1 to 5 of 5

SUMIFS + condition on result

  1. #1
    Registered User
    Join Date
    05-25-2012
    Location
    Drnis, Croatia
    MS-Off Ver
    Excel 2010
    Posts
    31

    SUMIFS + condition on result

    Hello,

    This is the problem, i need all results from SUMIFS formula that are zero to be 1. Example in attachment.
    In sheet List2, cell c3 result is 0, when that is the case i need it to be 1. Is there a simple solution to this?

    Any help is appreciated.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    Kuwait
    MS-Off Ver
    Office 2021
    Posts
    2,234

    Re: SUMIFS + condition on result

    Hello,

    try with MAX,

    =MAX(1,SUMIFS(List1!C$3:C$28, List1!A$3:A$28, A2,List1!B$3:B$28, 11))
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094

    Re: SUMIFS + condition on result

    Hi,

    Try,
    =MAX(SUMIFS(List1!C$3:C$28, List1!A$3:A$28, A2,List1!B$3:B$28, 11),1)

    HTH
    Steve

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

    Re: SUMIFS + condition on result

    if the answer is always an integer >=1 or 0
    =max(1,"mysumifformula")
    if its not then
    if(SUMIFS(List1!C$3:C$28, List1!A$3:A$28, A2,List1!B$3:B$28, 11)=0,1,SUMIFS(List1!C$3:C$28, List1!A$3:A$28, A2,List1!B$3:B$28, 11))
    "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

  5. #5
    Registered User
    Join Date
    05-25-2012
    Location
    Drnis, Croatia
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: SUMIFS + condition on result

    Thank you very much, works great.

+ 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