+ Reply to Thread
Results 1 to 3 of 3

Sum if sum of cell range is negative number

  1. #1
    Forum Contributor
    Join Date
    02-13-2016
    Location
    BMass
    MS-Off Ver
    2010
    Posts
    154

    Sum if sum of cell range is negative number

    Hi...need a formula that sets cell equal to zero if sum of cell range is negative , but if sum of cell range is 0 or higher than the solution is the sum of cell range.

    eg. solution would be in d3


    a3 b3 c3
    -17 22 -9

    d3 if sum of a3 to c3 = less than zero/negative,0 or if sum a3 to c3 is zero or higher/positive, sum of a3:c3
    total is -4 so cell should be 0


    a4 b4 c4
    12 -14 26

    d4
    total is 24 so cell should be 24

    Thanks
    Attached Files Attached Files
    Last edited by TreeLife; 11-23-2018 at 11:29 PM.

  2. #2
    Forum Contributor
    Join Date
    10-30-2003
    Location
    Singapore
    MS-Off Ver
    Excel 2019
    Posts
    197

    Re: Sum if sum of cell range is negative number

    D3, copied down :

    =MAX(0,SUM(A3:C3))

    Regards
    Bosco

  3. #3
    Forum Contributor
    Join Date
    02-13-2016
    Location
    BMass
    MS-Off Ver
    2010
    Posts
    154

    Re: Sum if sum of cell range is negative number

    Quote Originally Posted by Bosco View Post
    D3, copied down :

    =MAX(0,SUM(A3:C3))

    Regards
    Bosco
    Fantastic, Thanks!

+ 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: 2
    Last Post: 09-24-2018, 12:51 PM
  2. [SOLVED] Delete all negative Number in a range.
    By bennyys in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-02-2017, 01:24 PM
  3. select range to negative column number
    By ccsmith in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-01-2016, 03:00 PM
  4. Find 0 or smallest negative number from range
    By agg in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-26-2009, 11:42 AM
  5. Replies: 1
    Last Post: 11-20-2008, 01:52 AM
  6. Range less than/.. min/max to a negative number..
    By nastech in forum Excel General
    Replies: 2
    Last Post: 03-01-2006, 04:25 AM
  7. Find a negative number in a range
    By Scott at Culvers in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-22-2005, 01:00 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