+ Reply to Thread
Results 1 to 4 of 4

Ignoring Negative Values

  1. #1
    solomon_monkey
    Guest

    Ignoring Negative Values

    Like all things in Excel there must be a way...

    Given a column of numbers (say for simplicity 5 numbers) how can you
    use a formula to sum them and ignore any that are negative? (e.g. four
    of our 5 numbers are 5 and the other is -5 I want my formula to display
    20 and not 15 or 25).

    Thanks.


  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good morning Solomon_monkey

    You can do it, using the SUMIF function, and basically just add numbers that are greater than zero, thus:

    =SUMIF(A1:A10,">0",A1:A10)

    Your post didn't specify what range you were working on so my example uses the range A1:A10.

    HTH

    DominicB

  3. #3
    Bill Kuunders
    Guest

    Re: Ignoring Negative Values

    =SUMIF(A1:A5,">0")

    Greetings from New Zealand
    Bill K

    "solomon_monkey" <[email protected]> wrote in message
    news:[email protected]...
    > Like all things in Excel there must be a way...
    >
    > Given a column of numbers (say for simplicity 5 numbers) how can you
    > use a formula to sum them and ignore any that are negative? (e.g. four
    > of our 5 numbers are 5 and the other is -5 I want my formula to display
    > 20 and not 15 or 25).
    >
    > Thanks.
    >




  4. #4
    solomon_monkey
    Guest

    Re: Ignoring Negative Values

    You are all wonderful. Thanks.

    And to Bill K I look forward to visiting Middle Earth at some point.
    Apparently they still haven't taken down the scenery!!


+ 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