[英]Excel multiple values to SUM
I have a little range that has a list of different teams. 我的范围很广,其中列出了不同的球队。
1 Team1 20
2 Team2 5
3 Team3 7
4 Team4 6
5 Everyone (Sum of numbers above)
I am currently using a vlookup to pick how many team members to calculate for. 我目前正在使用vlookup来选择要计算的团队成员人数。 I need to be able to put 1,3 and calculate for 27 or 2,4 and calculate for 11. 我需要能够放入1,3并计算27或2,4并计算11。
Of course I would also hope to use the same lookup for concatenating the labels as well 1, 3 Team1 Team 3 etc. 当然,我也希望使用相同的查找来连接标签以及1、3 Team1 Team 3等。
Thanks in advance for the help. 先谢谢您的帮助。
You may not need a vlookup
if you just want to be able to calculate the sums. 如果只希望能够计算总和,则可能不需要vlookup
。 If you place your data in a Table by adding headers and doing (Insert | Table), you can get an automatically updating total column with interactive filtering. 如果通过添加标题并执行(插入|表)将数据放置在表中,则可以通过交互式过滤获得自动更新的总计列。
It may also be possible to handle this using SUMPRODUCT as shown below 如下所示,也可以使用SUMPRODUCT处理此问题
If you really want to enter a comma-separated list for the teams, you can build that participating column yourself: 如果您确实想输入团队的逗号分隔列表,则可以自己构建该参与列:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.