Using relative positions in Excel formulas

后端 未结 3 2014
清酒与你
清酒与你 2020-12-15 03:46

How do I create a formula that isn\'t made invalid when I delete a row.

For example in cell F12 I have the formula: =F11+D12-E12

This basically says take the

3条回答
  •  孤街浪徒
    2020-12-15 04:16

    You can use either

    • =OFFSET(F12,-1,0)+OFFSET(F12,0,-2)-OFFSET(F12,0,-1), or
    • =INDIRECT("F11",true)+INDIRECT("D12",true)-INDIRECT("E12",true)
    • =INDIRECT("R11C6",false)+INDIRECT("R12C4",false)-INDIRECT("R12C5",false)
    • =INDIRECT("R[-1]",false)+INDIRECT("C[-2]",false)-INDIRECT("C[-1]",false)

    Both functions also allow to specify ranges, just use whatever has your personal preference (see Excel Help)…

提交回复
热议问题