Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 7204 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Hi,

I'm a newbie with Filemaker Pro 7...I want to create a formula as follow:

I have a value1 and I have a conditions to have a result in value2

If value1 is < 1 then the value2 is 10

If value1 is > 1 and < 5 then the value2 is 20

If value1 is > 5 and < 10 then the value2 is 30

and so on....

How can I make this in Filemaker?...Please help!!! confused.gif

Posted

Would love to use Choose() here but you are correct - it's missing 1,5 etc.

Hard code could be:

Case(

Value1 < 1; 10;

Value1 < 5; 20;

Value1 < 10; 30

)

... and so on.

Posted

I don't know if it works or not - because I don't know what it is supposed to do. There are only three ranges - and you assume one of them to be an exception. That is not enough data.

FWIW, I think you can achieve the same result by:

Case ( n < 1 ; 10 ; 10 * ( Div ( n ; 5 ) + 2 ) )

Or, if you'd like the boundaries fall the other way:

Case ( n <= 1 ; 10 ; 10 * ( Ceiling ( n / 5 ) + 1 ) )

But writing formulae that hit some arbitrary target with arbitrary input is not my idea of fun. Let the poster clarify the logic behind this, and the formula will practically write itself.

This topic is 7204 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.