Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I want to display 0 if number in straight table is negative. And I don't want to rewrite my expression with if conditions, since its already complex. Is here a way, probably with visual cues as written in the title or any other way.
Thank you.
Hi Retko,
You can nest If-conditions, so:
=If(
If(variable1 = 1, expression1, expression2) < 0,
0,
If(variable1 = 1, expression1, expression2)
)
should work like a charm!
Hi Retko,
Usage of visual cues is strictly limited to the formatting of the cell value (color, font weight, size etc).
A simple:
=If(YOUR_EXPRESSION < 0, 0, YOUR_EXPRESSION)
should do the trick, however.
With kind regards,
Ronald
Hi, I am already using if condition like this:
if(variable1 = 1, expression1, expression2)
I need for those both expressions to have 0 if it is negative. Can you help me please rewrite the condition?
Thank you.
Hi Retko,
You can nest If-conditions, so:
=If(
If(variable1 = 1, expression1, expression2) < 0,
0,
If(variable1 = 1, expression1, expression2)
)
should work like a charm!
This is great, thank you.