有没有办法根据 Excel 中相邻列中的非空白单元格计数来溢出填充列?

发布于 2025-01-15 17:25:37 字数 311 浏览 0 评论 0原文

我正在寻找一种方法,根据相邻列中的单元格数量,用相同的输出 "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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

铁憨憨 2025-01-22 17:25:37

这是包含混合数据类型的 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)))<>"")

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文