Skip to main content
Answer

Syntax error Using the round function to round up to the nearest dollar

  • November 12, 2025
  • 1 reply
  • 19 views

Forum|alt.badge.img

I am trying to round the formula below to nearest whole number. Every way I’ve tried it get a syntax error. I am not sure where I am going wrong. 

 Original formula:

=iif([PMBudget.Type] = 'I',[PMBudget.Amount],0) + iif([PMBudget.Type] = 'I',[PMBudget.ChangeOrderAmount],0)

 

Here is what I entered using the round function.  When I am in the formula editor box it passes validation but then I get a syntax error after I save it.  

=iif([PMBudget.Type] = 'I',(Round(([PMBudget.Amount],0) + iif([PMBudget.Type] = 'I'), 0)),[PMBudget.ChangeOrderAmount],0)

Best answer by bwhite49

Try using “Ceiling(x)”. “Ceiling” is for rounding up and “Floor” is for rounding down

1 reply

bwhite49
Captain II
Forum|alt.badge.img+11
  • Captain II
  • Answer
  • November 12, 2025

Try using “Ceiling(x)”. “Ceiling” is for rounding up and “Floor” is for rounding down