我有下表。我想使用以下公式填充空单元格:=SUM(M2:N2)
。当我将此公式从左向右拖动(col 0
至2
...)时,它变为=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
由于
答案 0 :(得分:1)
Use the INDEX function and pick the row to SUM by referencing the relative column.
=SUM(INDEX($M:$N, COLUMN(B:B), ))
Resist the urge to use the volatile OFFSET function.