在Excel中添加所有正数 [英] Adding up all the positive numbers in Excel
本文介绍了在Excel中添加所有正数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法将行/列中的所有正数相加,但忽略所有负数?像SUM(),除了它忽略负数。我必须使用VBA吗?如果是这样,我将如何在VBA中执行?
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?
如果在Excel中无法完成,可以在OpenOffice Calc中完成吗?
If it can't be done in Excel, can it be done in OpenOffice Calc?
推荐答案
使用SUMIF。 Y总和列A中的所有正数:
Use SUMIF. YTo sum all the positive numbers in Column A:
=SUMIF(A:A,">0")
Excel和Calc中存在相同的功能
Same function exists in Excel and Calc
这篇关于在Excel中添加所有正数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文