Excel表格中的动态减法公式 [英] Dynamic Subtraction formula in excel sheet

查看:39
本文介绍了Excel表格中的动态减法公式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在 excel 中编写一个动态减法公式,该公式从其正上方的单元格中减去(指定列的)单元格.

I need to write a formula in excel for dynamic subtraction which subtracts a cell(of a specified column) from the cell just above it.

例如A2 = A1 - G1(G列固定)

For example, A2 = A1 - G1 (G column is fixed)

    and  A3    =     A2   -    G2
   
    and  A4    =     A3   -    G3

等等.

推荐答案

Excel 足够智能,可以使用对当前单元格的动态引用和相对引用.例如,如果您将 =A1-G1 放在单元格 A2 中并使用方块将这个单元格向下拖动,您将自动在 列中的所有其他单元格中获得类似的公式>A.

Excel is smart enough to use a dynamic reference and relative reference to the current cell. For example if you put =A1-G1 in cell A2 and use the square to drag this cell down, you will automatically get the similar formula in all others in column A.

视频示例:复制单元格并保持公式相对到当前单元格

这篇关于Excel表格中的动态减法公式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆