Jump to content
Sign in to follow this  
HALBURN

Need caculation to show invoice totals with a defined range

Recommended Posts

I am trying to create a "case" calculation in (FM7) that will return the invoice total if it is within the defined range.

How would I write a formula to show me an invoice total if it is in a range from "$251 to $500"?

Share this post


Link to post
Share on other sites

Is this a trick question, or...? Allright here's a little to choose from:

Case(aNumber>250 and aNumber<501;aNumber)

Case(not(aNumber ≤ 250 or aNumber ≥ 501);aNumber)

Case(aNumber ≤ 250 or aNumber ≥ 501 xor 1;aNumber)

Case(aNumber ≤ 250 or aNumber ≥ 501;Case(0;0);aNumber)

Case(Div ( aNumber-1 ; 250 )=1;aNumber)

--sd

Share this post


Link to post
Share on other sites

Thanks Søren, you have gone over and above the call of duty!

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

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