【发布时间】:2022-06-27 21:19:08
【问题描述】:
如果我有一个包含以下行和列的 google 表格
| Red | Green | Yellow | |
| Apple | |||
| Grape | |||
| Pear |
是否有创建以下列表的公式。
| Apple | Red | ||
| Apple | Green | ||
| Apple | Yellow | ||
| Grape | Red | ||
| Grape | Green | ||
| Grape | Yellow | ||
| Pear | Red | ||
| Pear | Green | ||
| Pear | Yellow |
【问题讨论】:
标签: google-sheets
如果我有一个包含以下行和列的 google 表格
| Red | Green | Yellow | |
| Apple | |||
| Grape | |||
| Pear |
是否有创建以下列表的公式。
| Apple | Red | ||
| Apple | Green | ||
| Apple | Yellow | ||
| Grape | Red | ||
| Grape | Green | ||
| Grape | Yellow | ||
| Pear | Red | ||
| Pear | Green | ||
| Pear | Yellow |
【问题讨论】:
标签: google-sheets
你可以用这个公式做到这一点:
=INDEX(FLATTEN(A2:A4&" "&B1:D1))
参考资料:
Generate all possible combinations for Columns(cross join or Cartesian product)
Create a combined list from two separate lists
【讨论】: