Adding up all the positive numbers in Excel

user192503 picture user192503 · Oct 20, 2009 · Viewed 12.3k times · Source

Is there a way to add up all of the positive numbers in a row/column but ignoring all of the negative numbers? Like SUM(), except that it ignores negative numbers. Would I have to use VBA? If so, how would I do it in VBA?

If it can't be done in Excel, can it be done in OpenOffice Calc?

Answer

DaveParillo picture DaveParillo · Oct 20, 2009

Use SUMIF. YTo sum all the positive numbers in Column A:

=SUMIF(A:A,">0")

Same function exists in Excel and Calc