且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

查找列中的项目计数,然后添加另一列中的值

更新时间:2022-06-15 22:02:46

尝试SUMIF函数.参见 http://www.techonthenet.com/excel/formulas/sumif.php有关更多详细信息.

Try the SUMIF function. See http://www.techonthenet.com/excel/formulas/sumif.php for more details.

更具体地说,单元格C1的公式应为:

More specifically, the formula for cell C1 should be:

=SUMIF(A:A,A1,B:B)

假设A和B列分别是项目和数量.

Assuming columns A and B are item and quantity respectively.