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

查看:134
本文介绍了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天全站免登陆