[英]Excel formula to check a text value from a cell against table's first column and return a value from the table second column
excel formula: Formula in column B (cell B1, B2, ...) must check if a word from C1:C4 is used in A1 and return a corresponding value from D1:D4. excel 公式:B 列(单元格 B1、B2、...)中的公式必须检查 A1 中是否使用了 C1:C4 中的单词,并返回 D1:D4 中的相应值。
In result, the column B should look like below.结果,B 列应如下所示。 This is an example of input data and results in the column B.这是 B 列中输入数据和结果的示例。
A一种 | B乙 | C C | D丁 |
---|---|---|---|
Go 2 steps Go 2个步骤 | M米 | Jump跳 | J杰 |
Turn left转左 | T吨 | Go Go | M米 |
Jump fence跳围栏 | J杰 | Turn转动 | T吨 |
Run forward向前跑 | M米 | Run跑步 | M米 |
Turn around回转 | T吨 | ||
Go 5 steps Go 5个步骤 | M米 |
I have done that some time ago using INDEX, MATCH AND VLOOKUP or HLOOKUP but can't find it any-more.前段时间我使用 INDEX、MATCH AND VLOOKUP 或 HLOOKUP 做到了这一点,但再也找不到了。 I remember that it took me long time to make it work.我记得我花了很长时间才让它发挥作用。 If a cell in column A is empty, corresponding cell in column B stays clear.如果 A 列中的单元格为空,则 B 列中的相应单元格保持空白。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.