我正在使用Google表格,并且有两个工作表Sheet1和Sheet2。我想查看Sheet1中的某个单元格是否包含Sheet2中A列的值。匹配应通过通配符完成*value*
。如果存在匹配项,则应检索B列(表2)中的相应值。
Sheet2看起来像这样:两列,如果有匹配项,列A是我要搜索的内容,列B是我要返回的内容。
| Search | Return |
|:---------------------|:--------------|
| dog | Dog |
| hound | Dog |
| juice | Beverage |
| cola | Beverage |
Sheet1看起来像这样,A列包含不同名称,B列包含google sheeet公式。
| Name | Type |
|:---------------------|:--------------|
| Coca-Cola | {formula} |
| Nuka-Cola | {formula} |
| Slurp Juice | {formula} |
| Dog | {formula} |
| Cola Juice | {formula} |
| Doggo | {formula} |
| Doge | {formula} |
| American Foxhound | {formula} |
| Mountain Dog | {formula} |
| The Hound | {formula} |
最后,Sheet1应该看起来像这样,请参阅B列。
| Name | Type |
|:---------------------|:--------------|
| Coca-Cola | Beverage |
| Nuka-Cola | Beverage |
| Slurp Juice | Beverage |
| Dog | Dog |
| Cola Juice | Beverage |
| Doggo | Dog |
| Doge | Dog |
| American Foxhound | Dog |
| Mountain Dog | Dog |
| The Hound | Dog |
这远远超出了我的Google工作表公式技能。现在,我在Sheet1中具有以下公式,该公式以前做过类似的操作-但现在根本不起作用:=LOOKUP(2^15;SEARCH(Sheet2!A:A;*A2*);Sheet2!B:B
。
如果可能的话,我不想为此使用绝对引用,因为我不知道Sheet2多长时间。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句