How can i drag formula from left to right?

2019-08-15 04:55发布

I have the following table. I want to fill in the empty cell by using this formula: =SUM(M2:N2). When I drag this formula from left to right (col 0 to 2...), it becomes =SUM(N2:O2). I want it to become =SUM(M3:N3) not =SUM(N2:O2) how can I do this?

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 

Thanks

标签: excel
1条回答
冷血范
2楼-- · 2019-08-15 05:16

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.

查看更多
登录 后发表回答