how do i make negative numbers equal zero

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a sheet set up with formulas, and i need a coloumn to sum up with only
the positive number in it.

example, i need:
4+6+-2+2
to equal 12

any sugestions
 
I would create a helper column which tests each value to insure that it is
positive, and, if not, sets a new value of zero and then sum that column.

Example: =IF(A2<0,0,A2) and fill down (say in column B)

Then sum column B.

Dave
 
For this example, I'll assume your data is in A1:A4.

=SUMIF(A1:A4,">0",A1:A4)

Adjust the range to meet your needs.

HTH,
Elkar
 

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

Back
Top