ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   can I get a sum to go to one or the other cell (https://www.excelbanter.com/excel-worksheet-functions/183140-can-i-get-sum-go-one-other-cell.html)

woodac

can I get a sum to go to one or the other cell
 
Is there a way to add 3 columns and have the sum automatically go into one
column if it is negative and another if it is positive?

Mike H

can I get a sum to go to one or the other cell
 
lets say you are summing columns A, B & C put this in D1
=IF(SUM(A1:C1)0,SUM(A1:C1),"")
Only positive values will display
Put this in e1
=IF(SUM(A1:C1)<0,SUM(A1:C1),"")
and it will only display negative values
Drag down as required

Mike

"woodac" wrote:

Is there a way to add 3 columns and have the sum automatically go into one
column if it is negative and another if it is positive?


Gord Dibben

can I get a sum to go to one or the other cell
 
=IF(SUM(A:C)0,"",SUM(A:C)) in D1

=IF(SUM(A:C)<0,"",SUM(A:C)) in E1


Gord Dibben MS Excel MVP


On Wed, 9 Apr 2008 14:16:01 -0700, woodac
wrote:

Is there a way to add 3 columns and have the sum automatically go into one
column if it is negative and another if it is positive?




All times are GMT +1. The time now is 05:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com