Excel根据相邻列进行加法
我有一张 Excel 2003 中的工作时间表。我想获得我在一个项目上工作的总时间。我想知道是否有宏或函数可以从内容为“FCBV”的列旁边的列中获取总计,我将举一个例子来说明我的意思...这是一个虚拟表。我想计算总持续时间,但仅限于 FCBV 项目。
有谁知道如何做到这一点?如果可能的话,您不需要给我完整的解决方案,只要想法或方向。或者如果您认为无法做到。谢谢
date - time - duration - project - task - details
01/01/12 08:30 0.5 FCBV W/E W/E
01/01/12 09:00 1.0 RPEW W/E W/E
01/01/12 10:00 0.5 FCBV W/E W/E
01/01/12 10:30 0.5 WRSS W/E W/E
I've got a time sheet for work in Excel 2003. And I'd like to get a total for the amount of time I've worked on a project. I'm wondering if there's macro or function to get totals from columns that are beside a column with the contents "FCBV" I'll give an example of what I mean... Here's a dummy table. I want to total the durations but ONLY when it's for the project FCBV.
Does anyone know a way to do this? you don't need to give me the full out solution, just ideas, or direction if it's possible. Or if you don't think it can be done. Thanks
date - time - duration - project - task - details
01/01/12 08:30 0.5 FCBV W/E W/E
01/01/12 09:00 1.0 RPEW W/E W/E
01/01/12 10:00 0.5 FCBV W/E W/E
01/01/12 10:30 0.5 WRSS W/E W/E
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您尝试过 SUMIF 吗?
我假设持续时间是 C 列,项目是 D 列
Have you tried
SUMIF
?I'm assumeing duration is column C and Project is column D
使用数据透视表。
1)全选-->插入-->数据透视表 -->好的
将显示新选项卡
2) 选择
持续时间-->西格玛值
项目-->行标签
use pivotTable.
1) Select all --> Insert --> PivotTable --> OK
Will show new tab
2) Select
duration --> Sigma Values
Project --> row labels