【发布时间】:2021-04-17 16:47:47
【问题描述】:
我经常使用vlookup 根据单个查找返回单个值。但是我有一种情况,我在一个用逗号分隔的单元格中有多个值,并且需要返回相应值的查找,也用逗号分隔。
我的查找单元格如下所示:
| Color | Key |
|---|---|
| Red | 1 |
| Blue | 2 |
| Yellow | 3 |
| Green | 4 |
这是我在输出中需要的内容(Keys (joined) 列)
| Color(s) | Keys (joined) |
|---|---|
| Red, Yellow | 1, 3 |
| Blue | 2 |
| Blue, Green | 2, 4 |
| Yellow, Blue, Red | 3,2,1 |
我找到了一些接近的在线参考资料,但并不完全符合我的需要:
https://trumpexcel.com/multiple-lookup-values-single-cell-excel/
谢谢!
【问题讨论】:
标签: excel-formula google-sheets-formula vlookup