Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
solomon_monkey
 
Posts: n/a
Default 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   Report Post  
Bill Kuunders
 
Posts: n/a
Default

=SUMIF(A1:A5,"0")

Greetings from New Zealand
Bill K

"solomon_monkey" wrote in message
ups.com...
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.



  #3   Report Post  
dominicb
 
Posts: n/a
Default


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


--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=380295

  #4   Report Post  
solomon_monkey
 
Posts: n/a
Default

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Count field to recognise rows with negative values in Exc. hamish Excel Worksheet Functions 2 June 20th 05 05:06 AM
Bar charts with negative values and label position Pearl Quan Charts and Charting in Excel 3 April 25th 05 10:51 PM
switching values from positive to negative lob Excel Worksheet Functions 5 February 18th 05 11:11 PM
display negative values as a blank cell in Excel pherozeb Excel Discussion (Misc queries) 3 January 5th 05 04:40 AM
display negative values as a blank cell in Excel Pheroze Bharucha Excel Discussion (Misc queries) 0 January 4th 05 10:51 PM


All times are GMT +1. The time now is 07:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"