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!

IIF formula problem

Status
Not open for further replies.

ksimmsa

Programmer
Feb 6, 2004
22
US
i'm trying to create a formula that is the following fields do not total more than two enteries that is will caculate zero.


AvgValue1: (([Monitoring]![Sup call 1a])+([Monitoring]![Sup call 2a])+([Monitoring]![Sup call 3a])+([Monitoring]![Sup call4a])+([Monitoring]![Sup call 5a])+([Monitoring]![Sup call1b])+([Monitoring]![Sup call2b])+([Monitoring]![Sup call 3b])+([Monitoring]![Sup calll 4b])+([Monitoring]![Sup call 5b])+([Monitoring]![QC Call 1c])+([Monitoring]![QC Call 2c])+([Monitoring]![QC Call 3c])+([Monitoring]![QC Call 4c])+([Monitoring]![QC Call 5c])+([Monitoring]![Trainer Call 1d])+([Monitoring]![Trainer Call 2d])+([Monitoring]![Trainer Call 3d])+([Monitoring]![Trainer Call 4d]))= < 2 then 0

thanks in advance for your help...
 
This syntax expresses the concept "If the sum of these fields is less than three, then the answer is zero. Otherwise, the answer is the sum of these fields."~

AvgValue1:
iif(
[Monitoring]![Sup call 1a]+
[Monitoring]![Sup call 2a]+
[Monitoring]![Sup call 3a]+
[Monitoring]![Sup call4a]+
[Monitoring]![Sup call 5a]+
[Monitoring]![Sup call1b]+
[Monitoring]![Sup call2b]+
[Monitoring]![Sup call 3b]+
[Monitoring]![Sup calll 4b]+
[Monitoring]![Sup call 5b]+
[Monitoring]![QC Call 1c]+
[Monitoring]![QC Call 2c]+
[Monitoring]![QC Call 3c]+
[Monitoring]![QC Call 4c]+
[Monitoring]![QC Call 5c]+
[Monitoring]![Trainer Call 1d]+
[Monitoring]![Trainer Call 2d]+
[Monitoring]![Trainer Call 3d]+
[Monitoring]![Trainer Call 4d]
< 3,0,
[Monitoring]![Sup call 1a]+
[Monitoring]![Sup call 2a]+
[Monitoring]![Sup call 3a]+
[Monitoring]![Sup call4a]+
[Monitoring]![Sup call 5a]+
[Monitoring]![Sup call1b]+
[Monitoring]![Sup call2b]+
[Monitoring]![Sup call 3b]+
[Monitoring]![Sup calll 4b]+
[Monitoring]![Sup call 5b]+
[Monitoring]![QC Call 1c]+
[Monitoring]![QC Call 2c]+
[Monitoring]![QC Call 3c]+
[Monitoring]![QC Call 4c]+
[Monitoring]![QC Call 5c]+
[Monitoring]![Trainer Call 1d]+
[Monitoring]![Trainer Call 2d]+
[Monitoring]![Trainer Call 3d]+
[Monitoring]![Trainer Call 4d]
)



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top