Simple range match formula

Forums ProRealTime English forum ProBuilder support Simple range match formula

  • This topic has 5 replies, 2 voices, and was last updated 1 year ago by avatarJS.
Viewing 6 posts - 1 through 6 (of 6 total)
  • #204852

    Hi

    This should be simple, but I can’t work out how to do it!

    I’m trying to compare one value to another. Sometimes they are the same but sometimes there can be a difference of one, two or three…. so I need a formula along the lines of the below code. However, if the value can be different by 3 then that should also allow a difference of 1, 2 or 3 not just 3 if that makes sense?

    Many thanks for any help.

    Rob

     

    #204858
    JS

    Hi @robdav

    Do you mean something like that…?

    1 user thanked author for this post.
    #204861

    Hi @JS

    Not quite. Let me try another example.

    Let’s say value1 = 104

    I want to compare it to another value (value2), if I allow a difference of three then value2 could be

    101, 102, 103 – 104- 105, 106, 107

    or difference of 1 to value2 could be

    103 – 104 – 105

    Obviously both value1 and value2 are variables.

    Does that make more sense?

    Thanks, Rob

    #204862
    JS

    Hi @robdav

    Try this…

    1 user thanked author for this post.
    #204864

    Thanks @JS, it looks like it should work, I will test it tomorrow and confirm.

    1 user thanked author for this post.
    avatar JS
    #204872
    JS

    Hi @robdav

    Use “For i=0 to TestValue”

    Then you will also test whether Value2 is equal to Value1…

Viewing 6 posts - 1 through 6 (of 6 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login