Give a

If X is 5; Y should be 4

If X is 6; Y should be 3

If X is 7; Y should be 2

If X is 8; Y should be 1

For example;

You can say (Y = X-1) is such a formula. If we plug it in:

5-1 = 4 (Correct)

6-1 = 5 (Nop)

7-1 = 6 (Nop)

8-1 = 7 (Nop)

So, is there a formula that will do this transformation?

I came up with one but its too tedious. I am sure the brain surgeons of gupshup can do better!

**function**so X can be transformed to Y? Where;If X is 5; Y should be 4

If X is 6; Y should be 3

If X is 7; Y should be 2

If X is 8; Y should be 1

For example;

You can say (Y = X-1) is such a formula. If we plug it in:

5-1 = 4 (Correct)

6-1 = 5 (Nop)

7-1 = 6 (Nop)

8-1 = 7 (Nop)

So, is there a formula that will do this transformation?

I came up with one but its too tedious. I am sure the brain surgeons of gupshup can do better!

## Comment