根据连续 3 次通过返回通过/失败;忽略空格
<编辑以纠正我关于“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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用此公式,这将按预期找到连续的
Pass
值,• 单元格 A1 中使用的公式
Try using this formula, this shall find the consecutive
Pass
values as expected,• Formula used in cell A1