Automatically updating a formula to read from a different cell as value is entered

时间:2017-06-09 12:39:19

标签: excel excel-formula

I am trying to run a simple formula:

=(W19*0.855)-X8  

I want to know if there is a way to write a formula so that instead of having to update the X# everyday to the next row # (for instance today I updated it from X7 to X8).

The cells that I would want to formula to look at is X4:X18 but only calculate the bottom (recent) number.

1 个答案:

答案 0 :(得分:1)

引用列X中的最后一个单元格:

=(W19*0.855)-INDEX(X:X, COUNTA(X:X))

用户可以每天在列X的新行中输入新值,公式将立即显示。我要求尽管所有的cel都填充到最后一个单元格。在X1中添加一些标题标题,并要求用户每天输入一个从X2开始的值。

您可以避免一些异常,即如果用户将某些单元格留空,则使用以下数组公式,它将始终捕获X列中的最后一个数字单元格,无论是emty单元格还是其他任何内容: / p>

=(W19*0.855)-INDEX(X:X, MAX(ROW(X:X)*ISNUMBER(X:X)))    Ctrl+Shift+Enter
相关问题