简体   繁体   English

基于另一个单元格excel的自动更新公式

[英]auto update formula based on another cell excel

I have formula: =COUNTBLANK(E1:E3) 我有公式:= COUNTBLANK(E1:E3)

I want the e3 to continue to auto increment when I add a column to A4. 我希望将列添加到A4时e3继续自动递增。

All help and input is highly appreciated 非常感谢所有帮助和意见

I am using Excel 2010 我正在使用Excel 2010

Adding more details of what i need to complete this issue: 添加我需要完成此问题的更多详细信息:

I've Merged cells AB, CD, EF. 我已经合并了AB,CD,EF单元。 Ab = item, cd = item serial, ef is date item sold. Ab =商品,cd =商品序列,ef是售出日期的商品。

Item     |    Serial    |    Date Sold
1             001            01/10/2016
2        |    867       |               
3        |    999       |    02/11/2014

Items in store: 1 商店商品:1

If item sold date is blank that means my item should still be in store. 如果项目销售日期为空,则表示我的项目仍应在商店中。

So when I add a new item in AB I need to auto update My formula reading date item sold. 因此,当我在AB中添加新项目时,我需要自动更新已售出的我的配方读取日期项目。 So I have formula =COUNTBLANK(E1:E3) which is dependant on A1-Axx depending on how many items I have in store. 因此我有= COUNTBLANK(E1:E3)公式,该公式取决于A1-Axx,具体取决于我存储的商品数量。

If I add item to A4 I need my countblank formula to see I added a new item and Start counting E4 as a blank item now and show, 2 items in store.. 如果我将商品添加到A4中,则需要用我的空白公式来查看是否添加了新商品,现在开始将E4作为空白商品计数并显示存储中有2件商品。

This will grow as the data grows: 随着数据的增长,这种增长将越来越大:

=COUNTBLANK(E1:INDEX(E:E,MATCH(1E+99,A:A)))

If your data in Column A is a string then use this instead: 如果您在A列中的数据是字符串,请改用此字符串:

=COUNTBLANK(E1:INDEX(E:E,MATCH("ZZZ",A:A)))
=COUNTBLANK(OFFSET($A$1$,0,0,COUNTA(A:A),1))

Should count the number of blanks in the column E that match your data. 应该计算与数据匹配的E列中的空白数。

You could also go with: 您还可以选择:

=COUNTA(A:A)-COUNTA(E:E)

That assumes there is nothing under your table 假设您的桌子下面没有东西

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM