Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sum of positive numbers only

Status
Not open for further replies.

veles

Technical User
Sep 1, 2006
57
CA
Hi,

I am using Crystal XI

I have a field that contains positive and negative numbers.

I need a formula to sum only the positive numbers

Example
3
4
-2
Sum to show 7 instead of 5

Thanks
 
Create a formula like this:

if {table.number} > 0 then
{table.number}

Place this in the detail section and right click on it and insert a sum on it.

-LB
 
Thanks LB. I will try this and report back. Your solutions always work for me
 
LB it works perfectly.

Thanks once again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top