[英]How do I quick fill a formula summing an array in a Google Sheets correctly?
I am attempting to make a work-time calculator tool in Google sheet.我正在尝试在 Google 表格中制作工作时间计算器工具。 This consists of one sheet containing a number of projects, each of which contains an (ideally variable) number of sub-projects.
这包括一张包含许多项目的工作表,每个项目都包含一个(理想情况下可变的)数量的子项目。 Each project is a range of lines, and each sub-project consists of a single line.
每个项目是一系列行,每个子项目由一行组成。 Each column is a calendar day.
每列是一个日历日。 The intended use would be to log the amount of time spent on each sub-project each day.
预期用途是记录每天在每个子项目上花费的时间。
The second sheet is meant to take the times put in for the whole week in each project and sum it, returning the total hours spent on that project each week.第二张表用于记录每个项目整周投入的时间并将其相加,返回每周在该项目上花费的总小时数。
I am running into two issues while doing this:我在执行此操作时遇到了两个问题:
I have no idea of how to go about it having a variable number of sub-project per each project at all我不知道如何 go 每个项目都有可变数量的子项目
Even when using a fixed and equal number of sub-projects per project I can't write a formula that correctly fills in the rest of the spreadsheet.即使每个项目使用固定且相等数量的子项目,我也无法编写正确填写电子表格 rest 的公式。 I thought I could just write the formula for one week and then apply it to the whole spreadsheet, but all the others do not apply to the ranges I want them to.
我以为我可以只写一周的公式,然后将其应用于整个电子表格,但所有其他的都不适用于我想要的范围。 So, if the formula for the first week is:
=SUM('Sheet1':S8:Y11)
I want the formula for the next project in the same week to be: =SUM('Sheet1':S12:Y15)
and the formula in the same project for the same week to be =SUM('Sheet1':Z8:AF11)
.所以,如果第一周的公式是:
=SUM('Sheet1':S8:Y11)
我希望同一周下一个项目的公式是: =SUM('Sheet1':S12:Y15)
和同一周同一项目中的公式为=SUM('Sheet1':Z8:AF11)
。 Instead, I'm getting =SUM('Sheet1':S9:Y12)
for the next project in the same week and =SUM('Sheet1':T8:Z11)
.相反,我将在同一周为下一个项目获得
=SUM('Sheet1':S9:Y12)
和=SUM('Sheet1':T8:Z11)
。
I understand this is probably pretty basic (at least version 2, no idea of version 1), but I do not know the correct terminology to even look up how to do this up on Google.我知道这可能是非常基本的(至少是第 2 版,不知道第 1 版),但我不知道正确的术语,甚至无法在 Google 上查找如何做到这一点。 Could you please help, or at least point me in the right direction?
你能帮忙吗,或者至少给我指出正确的方向? Thanks.
谢谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.