首页 > 解决方案 > 当数据在另一个工作表中时,如何从文本字符串中提取特定文本?

问题描述

我在谷歌表中有一个包含 60 个文本字符串条目的列。这些是职位。其中一个条目看起来像这样。

"Procurement Manager (MEP & Civil) urgently (Construction experience is Mandatory).Company - Kleindienst experience -  Experience with 5-star hotels & luxury project will be preferred, min 10 years’ experience with same level position."

在 google sheet 的另一个工作表中,我有一列包含 2000 多个职位。说 Sheet2!A1:A2000 。

我想如果上面的文本字符串中存在另一个谷歌工作表中的任何职位,然后在下一列中显示该职位。

我使用了以下 vlookup 公式,但未能提取职位名称。在这种情况下,工作表名称为 Data Lookup , A2:A2000 包含 Data Lookup 工作表中的所有职位,其中 9 列包含相同职位的查找值。C2 包含上述工作描述。

=VLOOKUP(C2,'Data Lookup'!A2:A2000,9,FALSE)

但这个公式给出了错误。我怎样才能得到职位。

标签: google-sheetsconditional-statementsgoogle-sheets-formula

解决方案


try:

=VLOOKUP(C2; 'Data Lookup'!I:J; 2; 0)

it translates as: look for C2 in column I and if match is found return column J


推荐阅读