有没有办法根据 Excel 中相邻列中的非空白单元格计数来溢出填充列?
我正在寻找一种方法,根据相邻列中的单元格数量,用相同的输出 "Yes"
填充整列。
例如,如果A2:A10中有数据,我希望B2:B10填写“是”。如果将更多数据添加到 A 列,我希望 B 列根据添加到 A 列的条目数自动更新/将“是”溢出到 B 中的其他行中。
我知道我可以执行 < code>=IF(ISBLANK()) 每行语句,但我试图减少公式的数量。我想尝试使用 B 列顶行中溢出的单个公式来执行此操作。
A 列中的值可以更改,我只是想检查非空白值的数量。
我正在使用 Excel/Office 365。
I am looking to find a way to fill a whole column with the same output, "Yes"
, based on the number of cells in the adjacent column.
For example, if there's data in A2:A10, I would like B2:B10 to be filled with "Yes". If more data is added to column A, I'd like column B to automatically update / spill the "Yes" into additional rows within B based on the number of entries added to column A.
I'm aware that I can do an =IF(ISBLANK())
statement for each row, but I am trying to reduce the number of formulas. I'd like to try and do this with a single formula within the top row of column B that spills down.
The value in column A can change, I'm only trying to check the number of non-blank values.
I'm using Excel / Office 365.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是包含混合数据类型的 A 列的通用解决方案:
=REPT("Yes",A2:INDEX(A:A,MAX(IFNA(MATCH(IF({0;1},"Ω",77^) 77),A:A),0)))>>"")
This is a generic solution for column A containing mixed datatypes:
=REPT("Yes",A2:INDEX(A:A,MAX(IFNA(MATCH(IF({0;1},"Ω",77^77),A:A),0)))<>"")