动态引用合并/未合并的单元格(Google Spreadsheets)

时间:2017-02-21 15:17:19

标签: google-sheets spreadsheet

例如,我有

        A         B        C
   +---------+--------+---------+
 1 | Hello   | Google |  Sheets | // original text.
   +---------+--------+---------+
 2 |         |        |         |
   +---------+--------+---------+

我想引用行1到行2

的数据
        A         B        C
   +---------+--------+---------+
 1 | Hello   | Google |  Sheets | // original text.
   +---------+--------+---------+
 2 | Hello   | Google |  Sheets | // use formulas to reference data from row 1.
   +---------+--------+---------+

如果合并了单元格A1:C1,我希望以这种形式保存行2上的数据:

        A         B        C
   +---------+---------+---------+
 1 |     Hello Google Sheets     | // original text.
   +---------+---------+---------+
 2 | Hello G | Hello G | Hello G | // use formulas to reference data from row 1.
   | oogle S | oogle S | oogle S |
   | heets   | heets   | heets   |
   +---------+---------+---------+

或此表格:

        A         B        C
   +---------+---------+---------+
 1 |     Hello Google Sheets     | // original text.
   +---------+---------+---------+
 2 |     Hello Google Sheets     | // use formulas to reference data from row 1.
   +---------+---------+---------+

*请注意,由于来自行2的更改,行1会自动合并。

我不确定是否有办法做到这一点,因为通常结果是这样的:

        A         B        C
   +---------+--------+---------+
 1 |      Hello Google Sheets   | // original text.
   +---------+--------+---------+
 2 | Hello G |        |         | // use formulas to reference data from row 1.
   | oogle S |        |         |
   | heets   |        |         |
   +---------+--------+---------+

*因为B1C1由单元格A1合并,因此单元格B2C2只会引用任何内容。

0 个答案:

没有答案