Google Sheets:计算与日期列中的最大日期相关的多列中所有单元格值的公式。

huangapple go评论70阅读模式
英文:

Google Sheets: Formula to Sum all the Cell Values Across Multiple Columns Associated with Max Date in Date Column

问题

我想编写Google表格公式,使其通过日期列搜索,找到最大日期,然后对与最大日期相关的col1、col2和col3的值进行求和。这个总和会填充到同一Google表格中的不同单元格中。

由于日期不总是按照时间顺序排列,新日期将通过BigQuery自动刷新到我的表中,这就是我想要动态执行此操作的原因。

英文:

I have a Google Sheet that is connected to BigQuery so the table automatically generates new rows of data every week. I have a pivot table output that looks like below:

Google Sheets:计算与日期列中的最大日期相关的多列中所有单元格值的公式。

I want to write Google Sheet formula so that it searches through the date column, finds the max date, and then sums the values in col1, col2, and col3 associated with max date. This sum populates inside a different cell in the same Google Sheet.

The dates will not always be in chronological order and new dates will get automatically refreshed into my table via BigQuery which is why I want to find a formula to do this dynamically.

答案1

得分: 1

<!-- language-all: js --> 

*You may try:*  

    =sum(filter(B:D,A:A=max(A:A)))


[![enter image description here][1]][1]


  [1]: https://i.stack.imgur.com/FR8wK.png
英文:

<!-- language-all: js -->

You may try:

=sum(filter(B:D,A:A=max(A:A)))

Google Sheets:计算与日期列中的最大日期相关的多列中所有单元格值的公式。

huangapple
  • 本文由 发表于 2023年6月26日 23:24:09
  • 转载请务必保留本文链接:https://go.coder-hub.com/76558105.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定