Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding up all the positive numbers in Excel

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?

like image 616
user192503 Avatar asked Oct 20 '09 19:10

user192503


People also ask

How do you add only positive values?

Excel's SUMIF function lets you add up numbers that match specified criteria in a range of cells. As such, this is the best way to selectively add up positive numbers. In this function, range is the range of cells containing the data you want the function to work on.


1 Answers

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

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

Same function exists in Excel and Calc

like image 169
DaveParillo Avatar answered Sep 17 '22 15:09

DaveParillo