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

#INF error in computed item

Status
Not open for further replies.

tallbarb

Instructor
Mar 19, 2002
90
US
When dividing one item (bien) by another (budget) - which has a zero value - I get #INF in the computed results. Anyone know how I can show something other than that? I've tried an if...else but it didn't work - might have been user error, though.

if(bien/budget<0){0}else{bien/budget}

Thanks!
 
I think the system is interpeting your formula as (bien/budget)<0. If the value of budget is a zero then the results is an error rather than zero. Try your evaluation only on the budget value rather than the bien/budget value. Such as

if (budget<0){0} else (bien/budget)

Hope that helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top