Jump to content

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

Recommended Posts

Posted

Is it possible to have a calculation that returns "yes" if the number in "field1" is equally divisible by the number in "field2"?

For example, 4 divided by 2 would return "Yes"

8 divided by 5 would return "No"

LR

Posted

Oops--Don't think that Choose function works for "No". Since the Mod() function returns the remainder of the division, I think the only way to check it properly is:

If(Mod(YourNumber1;YourNumber2);"No";"Yes")

Posted

Absolutely !

Unless we change it to :

Choose(not MOD(field1,field2),"No","Yes") smirk.gif

The only difference between the 2 methods is that if both fields are empty, Choose would return No, while If would stay Blank

Version: v6.x

Platform: Mac OS 9

Posted

Hi Ender,

Ugo's calculation worked for me, but the calculation field needed to have a result of "Number", a result of "Text" did fail.

Lee laugh.gif

Version: v6.x

Platform: Mac OS 9

  • 2 weeks later...

This topic is 7598 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.