根据连续 3 次通过返回通过/失败;忽略空格

发布于 2025-01-14 11:13:12 字数 319 浏览 1 评论 0原文

<编辑以纠正我关于“RowA”的错误,哎呀!>

我需要制作一个通过/失败表,根据 Row1 中的连续值返回 A1 中的值。例如,如果B1、C1、D1通过,则A1=通过。但如果B1、C1通过,D1不通过,则A1=不通过。我知道如何使用 IF 来做到这一点。但我正在努力解决的问题是我需要它继续搜索,直到找到 3 个连续的通过或以其他方式返回失败。

所以:B1=失败,C1=通过,D1=通过,E1=空白,F1=通过需要为A1返回一个通过。连续通过 3 次的尝试次数没有限制,但测试完成的日子里肯定会有间隙。

我更喜欢用公式来完成此操作,但如果没有其他方法,我可以将其设为宏。

<Edited to correct my error about "RowA", whoops!>

I need to make a pass/fail sheet that returns a value in A1 based on the consecutive values in Row1. For example, if B1,C1,D1 are pass, A1=pass. But if B1, C1 are pass and D1 is fail, A1=Fail. Which I know how to do using IFs. BUT the thing I'm struggling with is that I need it to continue searching until it finds 3 consecutive passes or otherwise returns a fail.

So: B1=fail, C1=Pass, D1=Pass, E1=blank, F1=Pass needs to return a Pass for A1. There are no limits to how many attempts will be made to get 3 consecutive passes, but there will certainly be gaps in the days the tests are done.

I would prefer to do this with formulas, but I can make it a macro if there's no other way.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

酒几许 2025-01-21 11:13:12

尝试使用此公式,这将按预期找到连续的 Pass 值,

• 单元格 A1 中使用的公式

=IF(ISNUMBER(SEARCH("PassPassPass",TEXTJOIN("",,$A$2:$A$6))),"Pass","Fail")

FORMULA_SOLUTION

Try using this formula, this shall find the consecutive Pass values as expected,

• Formula used in cell A1

=IF(ISNUMBER(SEARCH("PassPassPass",TEXTJOIN("",,$A$2:$A$6))),"Pass","Fail")

FORMULA_SOLUTION

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