[英]Sum values of columns into adjacent column
In the top column S cell where you want the result, enter the formula =SUM(T1,U1,V1)
replacing row number "1" with the row number on which you are entering the formula. 在需要结果的顶部S单元格中,输入公式
=SUM(T1,U1,V1)
将行号“ 1”替换为要在其上输入公式的行号。
Then, copy (ctrl-c) the cell containing the formula, and paste it into the cells in column S below. 然后,复制(ctrl-c)包含该公式的单元格,并将其粘贴到下面S列的单元格中。
When you copy & paste a formula, the spreadsheet will automatically adjust the row numbers according to where the formula is pasted. 当您复制并粘贴公式时,电子表格将根据粘贴公式的位置自动调整行号。
Note, it will also adjust the Column letters, but in your case this is not relevant, since your Column positions are constant. 注意,它也会调整“列”字母,但是在您的情况下,这无关紧要,因为“列”位置是恒定的。
See the SUM formula documentation here: https://support.google.com/docs/answer/3093669 请参阅以下SUM公式文档: https : //support.google.com/docs/answer/3093669
If 14
is in Row1, in S1: 如果第1行中有
14
,则在S1中:
=arrayformula(mmult(T1:V*1,transpose(T2:V2^0)))
Courtesy @Max Makhrov from here . 礼貌@Max Makhrov从这里 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.