• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

If formula

Dear,

My file is showing two values that is -15 and 15.

please prepare formula such that,
if value is in between -1 to -1000 , it should become -1000
and
if value is in between 0 to 1000 , it should become 1000

Thanks in advance

Babasaheb Dabade
 

Attachments

Hi ,

Your question needs to be phrased more explicitly.

Are the only possible values 1000 and -1000 ?

Are the inputs all integer values , or will there be values such as -0.5 ? If so , for a value between 0 and -1 what is the output supposed to be ?

What about when the input value is beyond either 1000 or -1000 ?

If all the inputs will be integers , then one way is :

=SIGN(inputvalue+0.1) * 1000

If the input value is positive , the output will be 1000 , if the input value is negative , the output will be -1000.

Narayan
 
Back
Top