Need Formula HELP

S

Sandi

I have an Excel spreadsheet that has one column full of positive numbers and
negative numbers. I need a formula that will add up all the positive numbers
in one cell and all the negative numbers in another. I can do this by
selecting each cell one-by-one, but is there a faster way? It's a lot of
numbers to select one-by-one, that's why I am asking. THANKS :)
 
D

Danny Lewis

In the column next to it, (say the first value is in A3), so in B3, put
=if(A3>0,"x","y").

Run this formula to the bottom.

Then in a separate cell, write =sumif(B:B,"x",A:A)

That should work ok

Danny
 
Top