【问题标题】:Is there a way to use the data-splitting function for different types of separators at the same time?有没有办法同时对不同类型的分隔符使用数据拆分功能?
【发布时间】:2020-01-04 13:43:08
【问题描述】:

使用包含系统发育数据的数据表。试图从中分离信息。问题是它都在一个单元格中,对我来说手动双击,突出显示我需要的单元格的一部分,复制,双击我的电子表格,然后粘贴到其中会非常痛苦。试图分离到列,这样我就可以从一个电子表格复制/粘贴到另一个电子表格。

所以它在一个单元格中看起来像这样:

cervical vertebrae, postzygapophysis, contact anteriorly: absent(0); present but looks weird (1)

我希望它看起来像,在一行中:

cervical vertebrae | postzygapophysis | contact anteriorly | absent(0) |  present but looks weird(1)

【问题讨论】:

    标签: arrays google-sheets split google-sheets-formula array-formulas


    【解决方案1】:

    如果您在工作表中输入Split 函数时查看帮助或弹出窗口,您将看到[split_by_each] 是一个选项。当设置为TRUE 时,它将被delimiter 参数中的每个字符分割。

    所以,在你的情况下:

    =split(A1,",:;",true,true)
    

    【讨论】:

      【解决方案2】:

      您在 Googlesheet 中查找的内容是分开的: 基本上,对于单个分隔符,您可以简单地执行以下操作:

      =split(Cell,",")
      

      但是对于像你这样的多个分隔符,将所有分隔符放在一起:

      =split(Cell,"separators")
      

      例如,假设在单元格 A1 中,您将脏字符串放在那里,
      cervical vertebrae, postzygapophysis, contact anteriorly: absent(0); present but looks weird (1);
      在单元格 B2 或任何其他单元格中,您可以键入:=split(Cell,",;:")

      如果您需要修剪出现的空白,那么您可以改用它:
      =ArrayFormula(trim(split(A1,",;:")))

      【讨论】:

        【解决方案3】:

        一行(如前所述):

        =SPLIT(A1; ",;:")
        

        数组使用:

        =ARRAYFORMULA(IFERROR(SPLIT(A1:A; ",;:")))
        

        【讨论】:

          猜你喜欢
          • 2011-08-15
          • 2017-05-06
          • 2023-04-03
          • 1970-01-01
          • 2018-05-27
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多