I have a column of numbers, some negative, some positive

S

Skip

I have some calulations in my worksheet. They are done twice, if my
number is positive or negative.
I need to fill the cell next to my number with the calulation that
correspondes with the + or - of my number.


if A1 + if A1 -
A1 B1 C1 D1
-10 7 12

A2 B2 C2 D2
14 4 6
I need the 12 to appear in B1.

and the 4 to appear in B2.
Thanks
 
P

Paul C

the formula in B1 would be this
=if(a1<0,d1,c1)
Copy it down as far as needed.

This would lump 0 values in A with the positive. To have 0 with the
negatives use
=if(a1<=0,d1,c1)
 

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