+ Reply to Thread
Results 1 to 6 of 6

How to sum row but ignore negative numbers

  1. #1
    Forum Contributor
    Join Date
    06-28-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    192

    Question How to sum row but ignore negative numbers

    Lets assume Joe has to make on average "at least" 12 phone calls a day. I need to know how much he goes over each day. I dont care if he makes 12 or under.

    Row 10: I added a simple subtraction formula that subracts values in row 9 minus C6 (12 calls)

    cell R10 sums entire row 10. I dont want to sum negative numbers. Just the days he goes over 12. How do I only add postive numbers in this row while ignoring negative numbers?

    *spreadsheet attached.

    sample.PNG
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: How to sum row but ignore negative numbers

    Try this:

    =SUMIF(D10:P10,">0",D10:O10)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: How to sum row but ignore negative numbers

    Hi,

    A simple SUMIF will do that for you
    =SUMIF(D10:Q10,">0")
    if you want a count instead, just use COUNTIF instead of SUMIF.

    Alternatively, you could alter your difference formulas to use
    =MAX(0,D9-$C$6)
    and then keep the original SUM formula you had.
    Last edited by xlnitwit; 12-27-2017 at 10:20 AM.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  4. #4
    Forum Contributor
    Join Date
    06-28-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    192

    Re: How to sum row but ignore negative numbers

    why the heck didnt I think of that. thank you it worked.

  5. #5
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: How to sum row but ignore negative numbers

    You're welcome- thanks for the rep.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: How to sum row but ignore negative numbers

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. [SOLVED] Formula to ignore negative numbers in a column?
    By Tia in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-10-2021, 04:14 PM
  2. Replies: 9
    Last Post: 04-20-2016, 02:42 AM
  3. [SOLVED] SUMIF positive and negative numbers - take double a negative number?
    By Zordrail in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-16-2014, 08:34 AM
  4. Replies: 1
    Last Post: 11-20-2008, 01:52 AM
  5. [SOLVED] Excel Formula - Add column of numbers but ignore negative numbers
    By view for Distribution List members in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-06-2006, 10:20 PM
  6. [SOLVED] Ignore a cell used in a formula if it contains a negative value
    By Donald Thomas in forum Excel General
    Replies: 2
    Last Post: 02-18-2006, 10:20 PM
  7. How to ignore negative numbers
    By frustrated in forum Excel General
    Replies: 3
    Last Post: 10-04-2005, 09:05 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