PC Review


Reply
Thread Tools Rate Thread

How to ignore negative numbers

 
 
frustrated
Guest
Posts: n/a
 
      4th Oct 2005

Hi I have a column of values generated in excel some of which are
positive, some of which are negative.

Now these figures can change regularly from positive to negative
depending on previous figures entered so what I wanted to create was a
cell that only adds up the positive numbers in the column but ignores
any negative numbers.

Can anyone help??

Thanks


--
frustrated
------------------------------------------------------------------------
frustrated's Profile: http://www.excelforum.com/member.php...o&userid=27778
View this thread: http://www.excelforum.com/showthread...hreadid=472888

 
Reply With Quote
 
 
 
 
Max
Guest
Posts: n/a
 
      4th Oct 2005
Assuming values are in A1:A10

Put in say, B1: =SUMPRODUCT(--(A1:A10>0),A1:A10)

Adapt to suit, but note that
we can't use entire col references in SUMPRODUCT
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"frustrated" <(E-Mail Removed)> wrote
in message news:(E-Mail Removed)...
>
> Hi I have a column of values generated in excel some of which are
> positive, some of which are negative.
>
> Now these figures can change regularly from positive to negative
> depending on previous figures entered so what I wanted to create was a
> cell that only adds up the positive numbers in the column but ignores
> any negative numbers.
>
> Can anyone help??
>
> Thanks
>
>
> --
> frustrated
> ------------------------------------------------------------------------
> frustrated's Profile:

http://www.excelforum.com/member.php...o&userid=27778
> View this thread: http://www.excelforum.com/showthread...hreadid=472888
>



 
Reply With Quote
 
RagDyeR
Guest
Posts: n/a
 
      4th Oct 2005
For entire column references:

=SUMIF(A:A,">0")

--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================

"Max" <(E-Mail Removed)> wrote in message
news:e%(E-Mail Removed)...
Assuming values are in A1:A10

Put in say, B1: =SUMPRODUCT(--(A1:A10>0),A1:A10)

Adapt to suit, but note that
we can't use entire col references in SUMPRODUCT
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"frustrated" <(E-Mail Removed)> wrote
in message news:(E-Mail Removed)...
>
> Hi I have a column of values generated in excel some of which are
> positive, some of which are negative.
>
> Now these figures can change regularly from positive to negative
> depending on previous figures entered so what I wanted to create was a
> cell that only adds up the positive numbers in the column but ignores
> any negative numbers.
>
> Can anyone help??
>
> Thanks
>
>
> --
> frustrated
> ------------------------------------------------------------------------
> frustrated's Profile:

http://www.excelforum.com/member.php...o&userid=27778
> View this thread: http://www.excelforum.com/showthread...hreadid=472888
>




 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      5th Oct 2005
"RagDyeR" wrote:
> =SUMIF(A:A,">0")


Much neater to adopt this, without a doubt <g> !
Thanks, RD !
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
ignore value when a negative. =?Utf-8?B?RXFh?= Microsoft Excel Misc 3 1st Jul 2007 09:02 AM
Set negative numbers to zero. Do not calculate with negative valu =?Utf-8?B?RXhjZWwgSGVhZGFjaGU=?= Microsoft Excel Misc 4 14th Sep 2006 09:56 PM
Excel Formula - Add column of numbers but ignore negative numbers =?Utf-8?B?dmlldyBmb3IgRGlzdHJpYnV0aW9uIExpc3QgbWVt Microsoft Excel Worksheet Functions 1 7th Apr 2006 04:13 AM
Formula to ignore negative numbers in a column? =?Utf-8?B?VGlh?= Microsoft Excel Worksheet Functions 3 4th Feb 2006 03:53 PM
Re: Importing negative numbers when negative sign is at the back of the number Ken Snell Microsoft Access External Data 3 5th Aug 2003 08:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:57 PM.