[英]Sum every nth cell in a row infinitely
I am making a spreadsheet for my football (or soccer) team, and tracking how much each player has paid and whether they're in credit/debt so I'm calculating the balance in Sheet1 per game and then in Sheet2 calculating the total balance.我正在为我的足球(或足球)队制作电子表格,并跟踪每个球员支付了多少以及他们是否处于信用/债务中,因此我正在计算每场比赛 Sheet1 中的余额,然后在 Sheet2 中计算总余额.
The formula I am trying to do is, in Sheet2 trying to SUM
each value under the "Balance" column for (every 3 cells) for Aidan together to get the total balance.我试图做的公式是,在Sheet2中试图
SUM
“平衡”栏下每个值(每3个细胞)艾丹一起拿到总余额。
At the moment I am just doing the following but need it to accommodate an infinite amount of columns (fixtures) and be scalable because currently, this is not.目前,我只是在执行以下操作,但需要它来容纳无限数量的列(夹具)并具有可扩展性,因为目前并非如此。
=SUM(Sheet1!D3, Sheet1!G3)
Since the goal is to sum all values from columns with header "Balance", you could also do this:由于目标是对标题为“余额”的列中的所有值求和,您也可以这样做:
=sumproduct(Sheet1!$B$2:$J$2="Balance",Sheet1!B3:J3)
That way you don't have to worry about the index of those columns, should you ever decide to add more columns to your sheet.这样您就不必担心这些列的索引,如果您决定向工作表添加更多列。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.