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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Averaging 2 fields

Status
Not open for further replies.

sopomeres

MIS
Jan 16, 2003
61
US
I'm using CR 8.5. I have a numbers value in 2 different fields. How can I average these 2 seperate fields using a formula field? Also, if field1 = 0 then the field 2's value will be displayed as the average. So, 0's need to be omitted somehow.

Example #1:
Field1 = 90, Field2 = 100 Average = 95

Example #2:
Field1 = 90, Field2 = 0 Average = 90

Thank you for your help.
 
something like
create formula field "Average":
if
Field1<>0 and Field2<>0
then
(Field1+Field2)/2
else
Field1+Field2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top