#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Help with Formula

I have a coulmn with both negative and positive numbers. I would like a
formula that will add up only the positive or one that will add up only the
negitive numbers. Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Help with Formula

Try this
=SUM(IF(A1:A150,A1:A15,FALSE))

enter with Ctrl+shift+enter
reverse the sign to get < 0

Mike

"Mike Busch" wrote:

I have a coulmn with both negative and positive numbers. I would like a
formula that will add up only the positive or one that will add up only the
negitive numbers. Thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,533
Default Help with Formula

Hi Mike

The formulas below will sum positive or negative values in range A1:A10

=SUMIF(A1:A10;"0")
=SUMIF(A1:A10;"<0")

Best regards,
Per

"Mike Busch" skrev i meddelelsen
...
I have a coulmn with both negative and positive numbers. I would like a
formula that will add up only the positive or one that will add up only
the
negitive numbers. Thanks in advance.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 353
Default Help with Formula

Add only positive:
=SUMIF(B2:B12,"0")

Add only negative:
=SUMIF(B2:B12,"<0")

Adust range as needed.

"Mike Busch" wrote:

I have a coulmn with both negative and positive numbers. I would like a
formula that will add up only the positive or one that will add up only the
negitive numbers. Thanks in advance.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Help with Formula

Check out the sumif() function.

"Mike Busch" wrote:

I have a coulmn with both negative and positive numbers. I would like a
formula that will add up only the positive or one that will add up only the
negitive numbers. Thanks in advance.



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



All times are GMT +1. The time now is 03:53 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"