if (A > B, B, A) but ignore 0

if (A > B, B, A) but ignore 0

arsham
Enthusiast Enthusiast
264 Views
2 Replies
Message 1 of 3

if (A > B, B, A) but ignore 0

arsham
Enthusiast
Enthusiast

hi all,

i have a situation that i need to write a formula to pick the prameter which is smaller, but ignore 0s.

so for instance, if A is 8 and B is 6, i want it to be B, but in most cases B is zero so i want it to be A.

how can i make a exception for 0 ?

0 Likes
Accepted solutions (1)
265 Views
2 Replies
Replies (2)
Message 2 of 3

ToanDN
Consultant
Consultant
Accepted solution

@arsham wrote:

hi all,

i have a situation that i need to write a formula to pick the prameter which is smaller, but ignore 0s.

so for instance, if A is 8 and B is 6, i want it to be B, but in most cases B is zero so i want it to be A.

how can i make a exception for 0 ?


if (and (B < A, B > 0), B, A) 

Message 3 of 3

arsham
Enthusiast
Enthusiast

in @ToanDN  we trust! 

 

thanks!

0 Likes