简体   繁体   中英

Sum values of columns into adjacent column

How can I add values in columns (T,U,V) and put the result in each adjacent cell in column S?

Example:

样品

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.

Then, copy (ctrl-c) the cell containing the formula, and paste it into the cells in column S below.

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

If 14 is in Row1, in S1:

=arrayformula(mmult(T1:V*1,transpose(T2:V2^0)))

Courtesy @Max Makhrov from here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM