I have a column of 50 numbers

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
 
D

David Biddulph

=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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top