Excel中某些字段的求和值

发布于 2024-12-26 17:23:37 字数 136 浏览 2 评论 0原文

我有一个 Excel 电子表格,其中包含许多工作表。每个工作表上的一列称为“类型”。此栏由自由文本组成(有点像类别)。

我想做的是在一个单独的工作表上,能够整理“类型”中的所有不同条目,并能够对它们的相应值求和。

这怎么可能?

I have an Excel spreadsheet with a number of worksheets within it. One of the columns on each worksheet is called 'type'. This column is made of free text (a bit like a category).

What I'd like to do is on a separate worksheet, be able to collate all the different entries in 'type', and to be able to sum the corresponding values of them.

How is this possible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

坐在坟头思考人生 2025-01-02 17:23:37

在单独的工作表上,您需要拥有每种不同“类型”的列表。

使用 SumIf 函数,您可以对符合条件的所有值求和。例如,如果 Sheet1 如下所示:

A       B
Type    Count
Big     2
Small   3
Round   4
Small   1
Big     7
Round   4

那么在 Sheet2 上,

A       B
Type    Total
Big     9
Small   4
Round   8

Sheet2 上的 B 列中的公式将如下所示:

=SUMIF(Sheet1!A2:A7,B2,Sheet1!B2:B7)

On your separate worksheet you'll need to have the list of each of the different "types"

Using the SumIf function you can sum all the values that fit the criteria. For instance if Sheet1 looks like this:

A       B
Type    Count
Big     2
Small   3
Round   4
Small   1
Big     7
Round   4

Then on Sheet2 you would have

A       B
Type    Total
Big     9
Small   4
Round   8

The formula in Column B on Sheet2 would look like:

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