Excel根据相邻列进行加法

发布于 2024-12-31 23:39:30 字数 481 浏览 4 评论 0原文

我有一张 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

云裳 2025-01-07 23:39:30

您尝试过 SUMIF 吗?

=SUMIF(D2:D4,"FCBV",C2:C4)
=SUMIF(range,criteria,[sum_range])

我假设持续时间是 C 列,项目是 D 列

Have you tried SUMIF?

=SUMIF(D2:D4,"FCBV",C2:C4)
=SUMIF(range,criteria,[sum_range])

I'm assumeing duration is column C and Project is column D

迷你仙 2025-01-07 23:39:30

使用数据透视表。

1)全选-->插入-->数据透视表 -->好的
将显示新选项卡
2) 选择
持续时间-->西格玛值
项目-->行标签

use pivotTable.

1) Select all --> Insert --> PivotTable --> OK
Will show new tab
2) Select
duration --> Sigma Values
Project --> row labels

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文