Jump to content
Server Maintenance This Week. ×

calcuation between 2 numbers and given result


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

Recommended Posts

Hi,

 

I am trying to sort a calculation which is solved by the following.

"field a" has a range between 0001 and 9999

so if "field a" is between 0001 and 0999 I need to give field b a result of "yes"

 

i tried this. 


If ( fieldA ≥ 1 & fieldA ≤  999; "yes"; "" ) but it did'nt work.

Link to comment
Share on other sites

36 minutes ago, Ben Ball said:

If ( fieldA ≥ 1 & fieldA ≤  999; "yes"; "" ) but it did'nt work.

"it did'nt work" is not a good description of a problem. What does fieldA contain, and what is the result you get? 

Also, is fieldA defined as a Number field? You say it "has a range between 0001 and 9999". Numbers do not have leading zeros - and if you want to compare a text value to a number, you must convert it to a number first.

 

Edited by comment
Link to comment
Share on other sites

Yes ok.. apologise if it was unclear, but  I did write that field A contains values between 1 and 9999

I now know why it did'nt work. I should have written "and" not &.

the returned value would be 1 then, not yes.

 

thanks for the comment..

 

 

 

 

Link to comment
Share on other sites

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