Thread: sumif function
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
JE McGimpsey JE McGimpsey is offline
external usenet poster
 
Posts: 4,624
Default sumif function

For one cell:

=IF(A1<0,ABS(A1)+50,A1)

for a column, one way:

=SUMIF(A1:A100,"0")-SUMPRODUCT(--(A1:A100<0),A1:A100-50)

another alternative:

=SUMPRODUCT(ABS(A1:A100))+COUNTIF(A1:A100,"<0")*50


In article ,
triniqueen wrote:

Is there a way I could sum a cell, make it a positive number and add 50, only
if the cell has a negative number in it?