查找并查看两个不同的单元格,然后复制。

huangapple go评论76阅读模式
英文:

Lookup and see two different cell and then copy

问题

我的查询是:

我需要一个宏,用于

IF A9 = "GBP" AND B9 = "GERMANY- ABS" AND NEW CELL = GERMANY

问题是B9不是精确的"GERMANY",它包含一些其他文本,所以我们应该使用LIKE函数。

你能帮忙吗?

我有上面问题的宏或公式。

英文:

My query is:

I need a macro for

IF A9 = "GBP" AND B9 = "GERMANY- ABS" AND NEW CELL = GERMANY

The problem is B9 is not exact "GERMANY", it contains some other text so we should use LIKE function.

Can you please help?

i have macro or formula for above issue

答案1

得分: 1

在Excel中,您可以使用FINDSEARCH,它类似于LIKE。这里举例说明了两个IF条件,其中一个是查找单元格中的"GERMANY",根据您的需求修改示例:

=IF(AND(A1="GBP",IFERROR(FIND("GERMANY",B1), 0) > 0),TRUE,FALSE)
英文:

In Excel you can use FIND or SEARCH it's similar to LIKE. Here for example you have two IF conditions, where one of them is to find "GERMANY" in cell, modify example according to your needs:

=IF(AND(A1="GBP",IFERROR(FIND("GERMANY",B1), 0) > 0),TRUE,FALSE)

huangapple
  • 本文由 发表于 2023年7月20日 13:23:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/76726882.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定