Excel sumif与标准 [英] Excel sumif with criteria

查看:146
本文介绍了Excel sumif与标准的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个last_name,first_name,salary和total_salary列。销售人员在整个电子表格中出现多次。我想做的是写一个功能,总结出在销售人员出现的total_salary列中的薪水列。

I have a last_name, first_name, salary, and total_salary columns. The sales person appears multiple times throughout the spread sheet. What I would like to do is write a function that will sum up the salary column in the total_salary column only where the sales person appears.

示例输出:

Example output:

所需的输出:

Desired output:

谢谢

推荐答案

尝试这个(假设你的数据在列 A:C 起始行1):

Try this (assuming your data is in columns A:C starting row 1):

=SUMPRODUCT(--(A1=A:A),--(B1=B:B),C:C)

根据需要自动下载列表。

Autofit down the list as required.

这篇关于Excel sumif与标准的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆