I have a column of 50 numbers

  • Thread starter Thread starter Skip
  • Start date Start date
S

Skip

some are positive some are negative. I need to add +2 to the positive
numbers, and -2 to the negative numbers.
4 will become 6 and -12 become -14. I recieved help adding +1 and -1,
but now +2/-2 are needed. Thanks
 
=IF(A1<0,A1-2,IF(A1>0,A1+2,"I haven't said what I want to do if the original
number is zero"))
or, making a guess at your unspecified result,
=A1+2*SIGN(A1)
 
Back
Top