如何从左到右拖动公式?

时间:2015-09-28 21:10:11

标签: excel

我有下表。我想使用以下公式填充空单元格:=SUM(M2:N2)。当我将此公式从左向右拖动(col 02 ...)时,它变为=SUM(N2:O2)。我希望它成为=SUM(M3:N3)而不是=SUM(N2:O2)我该怎么做?

ENG Date    0   1   2   3   4   5   6

Z#1 6/1                         
Z#1 6/2                         
Z#1 6/3                         
Z#1 6/4 

由于

1 个答案:

答案 0 :(得分:1)

Use the INDEX function and pick the row to SUM by referencing the relative column.

=SUM(INDEX($M:$N, COLUMN(B:B), ))

      Drag SUM ROWS right

Resist the urge to use the volatile OFFSET function.