View Single Post
  #2   Report Post  
KL
 
Posts: n/a
Default

Try these:

=A1+2-4*MOD(A1,2)
=A1+2*-1^MOD(A1,2)
=A1+IF(MOD(A1,2),-2,2)
=A1+CHOOSE(1+MOD(A1,2),2,-2)

Regards,
KL


"Andrew" wrote in message
...
Hi

I need a formula that will Add 2 to the numbers in Column A if they are
even
and Minus Two if they are Odd.

Thanks in advance