获取最后 4 个单元格的平均值 Google 表格

发布于 2025-01-20 04:40:02 字数 607 浏览 2 评论 0原文

我正在尝试弄清楚如何找到最后4列的平均值。黄色名声中的每个列都是分数,然后攻击是用于获得该分数的攻击。

因此,从本质上讲,它需要添加最后4个名声列,并将其除以最后4个攻击列的总和。

示例< / strong>

对于第一行(第3行),最终输出将执行此计算:

(3500+2700+2700+3250+3300) /(16+12+12+16+16)= 212.5 < /strong>

示例2

第二行(第4行),最终输出将执行此计算:

(2850+3500)/(16+16)= 198.4

< a href =“ https://i.sstatic.net/cyq4r.png” rel =“ nofollow noreferrer”>

非常感谢任何帮助!谢谢!

I am trying to figure out how to find the average of the last 4 columns. Every column in yellow Fame is the score, and then Attacks is how many attacks used to get that score.

So essentially, it would need to add up the last 4 Fame columns, and divide it by the sum of the last 4 Attacks columns.

Example

For the first row (row 3), the final output would do this calculation:

(3500+2700+3250+3300) / (16+12+16+16) = 212.5

Example 2

For the second row (row 4), the final output would do this calculation:

(2850+3500) / (16+16) = 198.4

enter image description here

Any help is greatly appreciated! Thanks!

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

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

发布评论

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

评论(1

素食主义者 2025-01-27 04:40:02

从右到左尝试:

=SUM(SPLIT(REGEXEXTRACT(TEXTJOIN(" ", 1, FILTER(D3:3, 
 MOD(COLUMN(D3:3), 2)=0)), "\d+ \d+ \d+ \d+$"), " "))/
 SUM(SPLIT(REGEXEXTRACT(TEXTJOIN(" ", 1, FILTER(D3:3, 
 MOD(COLUMN(D3:3)-1, 2)=0)), "\d+ \d+ \d+ \d+$"), " "))

”在此处输入图像描述”


更新:

从左到右使用:

=INDEX(QUERY(QUERY(IFERROR(SPLIT(TRIM(FLATTEN(QUERY(TRANSPOSE(D3:6),,9^9))), " ")*1), 
 "select (Col1+Col3+Col5+Col7)/(Col2+Col4+Col6+Col8)"), "offset 1", 0))

“在此处输入图像说明”

from right to left try:

=SUM(SPLIT(REGEXEXTRACT(TEXTJOIN(" ", 1, FILTER(D3:3, 
 MOD(COLUMN(D3:3), 2)=0)), "\d+ \d+ \d+ \d+
quot;), " "))/
 SUM(SPLIT(REGEXEXTRACT(TEXTJOIN(" ", 1, FILTER(D3:3, 
 MOD(COLUMN(D3:3)-1, 2)=0)), "\d+ \d+ \d+ \d+
quot;), " "))

enter image description here


update:

from left to right use:

=INDEX(QUERY(QUERY(IFERROR(SPLIT(TRIM(FLATTEN(QUERY(TRANSPOSE(D3:6),,9^9))), " ")*1), 
 "select (Col1+Col3+Col5+Col7)/(Col2+Col4+Col6+Col8)"), "offset 1", 0))

enter image description here

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