简体   繁体   English

复杂的If语句

[英]Complicated If statement

I'm having a hard time solving a problem.我很难解决一个问题。

The Objective is to look at Column B. If say Cell B1 contrains "Certain Text" or "Certain Text 2" Then the Cell directly to it's left A1 in this case should return "Certain Text 3" Else "Certain Text 4".目标是查看 B 列。如果说单元格 B1 包含“特定文本”或“特定文本 2”,那么在这种情况下,直接位于其左侧的单元格 A1 应返回“特定文本 3”,否则为“特定文本 4”。 This process continues onto all the rows in Column B.这个过程继续到 B 列中的所有行。

Please note that I have around 65,000 rows.请注意,我有大约 65,000 行。

Thank you谢谢

将其放入 A1 并双击“填充手柄”。

=IF(OR(B1={"Certain Text", "Certain Text 2"}), "Certain Text 3", "Certain Text 4")

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

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