Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
AlDeb
 
Posts: n/a
Default Sum and Skip Negative Numbers


I have three columns of numbers. I want to sum the three columns into a
fourth column. NO problem there! My issue is if one of the columns has
a negative number I do not want to sum the negative number. How can I
write that into a formula?

Please help!!!


--
AlDeb
------------------------------------------------------------------------
AlDeb's Profile: http://www.excelforum.com/member.php...o&userid=25391
View this thread: http://www.excelforum.com/showthread...hreadid=388652

  #2   Report Post  
Ron Coderre
 
Posts: n/a
Default


Try something like this:

=SUMIF(A1:C1,"=0",A1:C1)

Does that help?

Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=388652

  #3   Report Post  
AlDeb
 
Posts: n/a
Default


What do I do if the three columns I am summing are F4, I4, & L4??? The
three columns are not all together.


--
AlDeb
------------------------------------------------------------------------
AlDeb's Profile: http://www.excelforum.com/member.php...o&userid=25391
View this thread: http://www.excelforum.com/showthread...hreadid=388652

  #4   Report Post  
Domenic
 
Posts: n/a
Default


Try...

=SUMPRODUCT(--(MOD(COLUMN(F4:L4)-COLUMN(F4),3)=0),--(F4:L40),F4:L4)

Hope this helps!

AlDeb Wrote:
What do I do if the three columns I am summing are F4, I4, & L4??? The
three columns are not all together.



--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=388652

  #5   Report Post  
Ron Coderre
 
Posts: n/a
Default


As long as you only have a few cells to sum, this will work:

=SUM(MAX(F4,0),MAX(I4,0),MAX(L4,0))

Does that help?

Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=388652

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 07:30 PM.

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

About Us

"It's about Microsoft Excel"