Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

greater than and less than

I have a column of $ values- both negative(-$14.27) ,Positive($14.27) and Balanced( $0.00).

I want to do a Text Object to display the SUM of the Greater Than $0.00 and the Less Than $0.00.

I am using this expression

=sum(DIFFERENCE <'0') & (DIFFERENCE>'0')

But it is only returning the SUM of the negative(-$14.27).  If I switch the order of the Greater and Less, it then will SUM only the positive.

What would be the correct expression?

Thanks!

Dan

12 Replies
Anonymous
Not applicable
Author

try  this.

if(DIFFERENCE<>0,count(DIFFERENCE))

or

if(DIFFERENCE<>,fabs(Sum(DIFFERENCE)))

Anonymous
Not applicable
Author

O well:

='Total: ' & sum(if(DIFFERENCE>0,DIFFERENCE)) - sum(if(DIFFERENCE<0,DIFFERENCE))

Anonymous
Not applicable
Author

Thank you all for the help.

This expression worked-

='Total Bank Lock Box Differences:  ' & count(if(DIFFERENCE<>0,DIFFERENCE))

Dan