Adding Negative and Positive Numbers

J

Jacq

Quick question:

If I have the following numbers in a row:

5, 15, 10, -15, -22, 4, 10, -15

Is there a formula I can use for excel to only add up the negative numbers
and ignore the positives?
And is there a formula I can use to only add up the positve numbers and
ignore the negatives?

Thanks
 
T

T. Valko

Try these:

Negative numbers:

=SUMIF(A1:H1,"<0")

Positive numbers:

=SUMIF(A1:H1,">0")
 
G

Gary''s Student

=SUM(IF((A1:H1)>0,A1:H1)) for positives
=SUM(IF((A1:H1)<0,A1:H1)) for negatives

These are array formulas entered with CNTRL-SHFT-ENTER rather than just ENTER
 

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