Skip to Content

Bex nested If condition


Hi All,
Although I looked into several thread, but could not make out what is going wrong.

My requirment is based on two columns as below.

1) If Column1 is 0 and column2 is greater than 0 show 100

2) If Column1 is greater than 0 and Column2 0 then -100

3) Formula

I have written the formula as below--

(Column1 == 0.00 AND Column2 > 0.00)*100+(Column1> 0.00 AND Column2 == 0.00)*(-100)+(Formula)

But it is not giveing me the desired out put in second case where it is becoming -101.

Any quick help is really appreciated.

Regards
Sourav

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2014 at 06:39 PM

    Hi Sourav,

    Please use below formula

    (Column1 == 0.00 AND Column2 > 0.00)*100+(Column1> 0.00 AND Column2 == 0.00)*(-100)+(Column1 <> 0.00 OR Column2 <= 0.00)*(Column1<= 0.00 OR Column2 <> 0.00)*(Formula)

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.