【问题标题】:In Google sheets is there a simple method to create a list based off row and column cells在 Google 表格中有一种简单的方法来创建基于行和列单元格的列表
【发布时间】: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


    【解决方案1】:

    你可以用这个公式做到这一点:

    =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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-03-02
      • 1970-01-01
      • 1970-01-01
      • 2020-10-23
      • 1970-01-01
      • 2021-09-25
      • 2022-01-03
      • 2017-02-08
      相关资源
      最近更新 更多