Hello.
Straight to my situation.
The above MOD function in A3 returns values between:
In A5 I manage to have:
Which is what I want.
That result in A5 is almost the same as the MOD function in A3, except that when A3 results in 0 (zero), A5 results in 1 (one).
I don't really need A4 nor A3, so I could combine them as:
There should be a simpler (or alternative) way to get the same result, but I couldn't find it. Ideas?
Thank you in advance.
Straight to my situation.
Code:
A1: positive integer
A2: positive integer
A3: MOD(A1/A2,1)
A4: 1*(A3=0)
A5: A3+A4
The above MOD function in A3 returns values between:
Code:
0 < = (A1/A2) < 1
In A5 I manage to have:
Code:
0 < (A1/A2) < = 1
Which is what I want.
That result in A5 is almost the same as the MOD function in A3, except that when A3 results in 0 (zero), A5 results in 1 (one).
I don't really need A4 nor A3, so I could combine them as:
Code:
A6: MOD(A1/A2,1)+(MOD(A1/A2,1)=0)
There should be a simpler (or alternative) way to get the same result, but I couldn't find it. Ideas?
Thank you in advance.