Trying to set the max value for a field.

  • 0
  • 1
  • Question
  • Updated 5 months ago
  • In Progress
I've been using this formula: Min([Value]-[Value Used] , 40) which displays the max at 40. However the actual value of the field continues to go beyond 40. if the actual value is 43 and i subtract 1, it shows as 40 instead of 39. am i using the wrong formula?
Photo of Hao

Hao

  • 40 Points

Posted 5 months ago

  • 0
  • 1
Can you say in words what you want the formula to do?
Photo of Hao

Hao

  • 40 Points
the formula takes a vacation balance, subtracts a number days used to deliver the total available. The max available will always be 40. 

it works currently, however instead of capping at 40 it only displays 40 instead of the higher value.
Sorry,

I’m still not understanding what you want the formula to do. Perhaps you can explain with two examples using numbers and the result you want.
Photo of Hao

Hao

  • 40 Points
X-Y=Z.
Z cannot exceed 40.
From your description of the problem it looks like you are using Max instead of Min, , despite the fact that you posted that you were using Min in your formula.

If you were actually using Min, I suggest that you double check what values are actually in those two fields that are in the formula.